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

sparse indexes not sparse in certain array cases

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.9.2
    • None
    • Index Maintenance
    • None
    • ALL

    Description

      > 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

      Attachments

        Activity

          People

            aaron Aaron Staple
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: