Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
None
-
None
-
*Location*: https://docs.mongodb.com/v2.4/core/index-sparse/#index-type-sparse
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
*Screen Resolution*: 1366 x 768
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(
)
It has different score values but it states that due to sparse index on score field these statements would not execute fine.