0
Fehler nicht Primärindex ist:Führen Art auf dem Feld, die
No index exists for this sort, try indexing by the sort fields.
Ich habe versucht, Indizes auf anotherValue
, _id+anotherValue
, aber keinen Unterschied zu schaffen.
Dies ist meine Frage:
{
"selector": {
"_id": { "$gt": null },
"$or": [
{ "_id": "10" },
{ "value": "10", "anotherValue": "1234" }]
},
"sort": [{"anotherValue": "desc"}]
}
Indizes Setup:
Your available Indexes:
special: _id
Dank! versuchen zu vermeiden '{" index ": {}," type ":" text "}' weil off Perf Implikationen – bobbyrne01