sparse indexes not sparse in certain array cases

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.9.2
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > c.drop();
      true
      > c.ensureIndex(

      {'a.b':1}

      ,

      {sparse:true}

      );
      > c.save(

      {a:[]}

      ); // an entry is generated in the index
      > c.save(

      {a:1}

      ); // no entry is generated in the index
      > c.find().hint(

      {'a.b':1}

      ).itcount()
      1

              Assignee:
              Aaron Staple (Inactive)
              Reporter:
              Aaron Staple (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: