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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ