Query Plan Cache Methods查询计划缓存方法
The PlanCache methods are only accessible from a collection's plan cache object. PlanCache方法只能从集合的计划缓存对象访问。To retrieve the plan cache object, use the 要检索计划缓存对象,请使用db.collection.getPlanCache()
method.db.collection.getPlanCache()
方法。
Note
For details on a specific method, including syntax and examples, click on the link to the method's reference page.有关特定方法的详细信息,包括语法和示例,请单击该方法参考页的链接。
db.collection.getPlanCache() | |
PlanCache.clear() | db.collection.getPlanCache().clear() .db.collection.getPlanCache().clear() 。 |
PlanCache.clearPlansByQuery() | db.collection.getPlanCache().clearPlansByQuery() db.collection.getPlanCache().clearPlansByQuery() |
PlanCache.help() | db.collection.getPlanCache().help() .db.collection.getPlanCache().help() 。 |
PlanCache.list() | db.collection.getPlanCache().list() . db.collection.getPlanCache().list() 。 |