with multiple equal, but not bit equivalent, values for a key, only one is stored in the index

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • None
    • Query
    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Can cause problems when covered indexes are used, and likely in other scenarios.

      > c.drop()
      true
      > c.save( {a:[0.0,NumberLong(0)]} )
      > c.find( {a:0}, {a:1,_id:0} )
      { "a" : [ 0, NumberLong(0) ] }
      > c.ensureIndex( {a:1} )
      > c.find( {a:0}, {a:1,_id:0} )
      { "a" : 0 }
      

      Probably doesn't make sense to allow multiple equal keys per doc in the short term, since without extra work that would break uniqueness of key,doc pairs which would would be bad for the btrees and likely other places. But we can try prevent bad results as in above.

            Assignee:
            Backlog - Query Team (Inactive)
            Reporter:
            Aaron Staple (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: