Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3216

sparse indexes not sparse in certain array cases

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

      > 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 Aaron Staple
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: