MongoDB查詢分析經常使用函數explain()

MongoDB 查詢分析能夠確保咱們建議的索引是否有效,是查詢語句性能分析的重要工具git explain 操做提供了查詢信息,使用索引及查詢統計等。有利於咱們對索引的優化。web db.collection.explain()簡介 支持下列操做返回查詢計劃 aggregate(), count() ,distinct(),find(),group(), remove(),update() 等服務
相關文章
相關標籤/搜索