Sparse index utilisation without $exists

0

https://docs.aws.amazon.com/documentdb/latest/developerguide/functional-differences.html#functional-differences.sparse-index is causing me problems migrating an existing MongoDB code-base that makes use of sparse indexes - some of the queries are now unindexed and therefore take minutes/hours rather than milliseconds.

Is there a plan to fix this compatibility bug any time soon, or do I need to track down every query that relies on a sparse index and fix it?

Thanks,
Tom

TomHW
demandé il y a 3 ans238 vues
1 réponse
0

For now, the recommended action is to track the slow queries by enabling Profiling and update the queries to include $exists.

AWS
Mihai A
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions