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
asked 3 years ago232 views
1 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions