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
已提问 3 年前238 查看次数
1 回答
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
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则