Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-10093

Comment on: "manual/core/index-sparse.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    Description

      For mongodb v2.6

      The example at the end of this page seems wrong.

      However, this index would not permit adding the following documents:

      db.scores.insert(

      { "userid": "PWWfO8lFs1", "score": 82 }

      )
      db.scores.insert(

      { "userid": "XlSOX66gEy", "score": 90 }

      )

      It has different score values but it states that due to sparse index on score field these statements would not execute fine.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 44 weeks, 1 day ago