問題タブ [compound-index]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
mongodb - 複合テキスト検索とタイムスタンプ mongodb でテキスト検索インデックスをクエリする
私はコレクションを持っており、ドキュメントの合計は約 6,500 万件あります。
検索用に (email, created_int): {"email": text, created_int: -1} に複合インデックスを作成し、created_int の範囲内の名前をフィルターしましたが、検索のパフォーマンスが低いことがわかりました。
クエリで説明を使用しようとしました:
説明結果は次のとおりです。
それは説明統計です: