The tool should not sort by property name on a getIndex

Carl Tremblay shared this problem 7 years ago
Solved

Running a getIndexes command to list an index result in the keys being sorted by property name, which defeats the purpose because the ordering is crucial. Ex.:


MongoBooster


"key" : {

"ci" : NumberInt("1"),

"md" : NumberInt("-1"),

"nid" : NumberInt("1")

},


Mongo shell:


"key" : {

"nid" : 1,

"ci" : 1,

"md" : -1

},

Replies (2)

photo
1

Seems to be working fine.

Leave a Comment
 
Attach a file