The PlanCache methods are only accessible from a collection’s plan cache object. PlanCache方法只能从集合的plan cache对象访问。To retrieve the plan cache object, use the 要检索计划缓存对象,请使用db.collection.getPlanCache()
method.db.collection.getPlanCache()
方法。
Note
For details on specific methods, including syntax and examples, click on the specific method to go to its 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() |
|