documentdb-query-optimization
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseQuery & Aggregation Optimization — Azure DocumentDB
查询与聚合优化 —— Azure DocumentDB
Best-practice rules for writing queries that can actually use indexes. For the full diagnostic workflow (explain output interpretation, ESR compound index design, covered queries, anti-patterns), see the skill.
documentdb-query-optimizer编写可实际利用索引的查询的最佳实践规则。如需完整的诊断工作流(解释输出解读、ESR复合索引设计、覆盖查询、反模式),请查看技能。
documentdb-query-optimizerRules
规则
- query-explain-plan — Use to verify index usage; watch
explain("executionStats")/keysExaminedvsdocsExamined; avoidnReturned.COLLSCAN
- query-explain-plan —— 使用验证索引使用情况;关注
explain("executionStats")/keysExamined与docsExamined的对比;避免nReturned。COLLSCAN