【发布时间】:2014-02-27 20:01:19
【问题描述】:
这是对 mongodb 中的简单搜索的解释,它需要超过 2.4 秒或更长时间来检索数据。如果我添加索引(搜索参数)则需要超过 5 秒。
查询
db.CX_EMPLOYEES.find({ "$or" : [{ "AML_FULLNAME" : /RAJ/ },
{ "AML_FULLALIAS" : /RAJ/ }] })
解释
{
"cursor" : "BasicCursor",
"isMultiKey" : false,
"n" : 79,
"nscannedObjects" : 504570,
"nscanned" : 504570,
"nscannedObjectsAllPlans" : 504570,
"nscannedAllPlans" : 504570,
"scanAndOrder" : false,
"indexOnly" : false,
"nYields" : 0,
"nChunkSkips" : 0,
"millis" : 2423,
"indexBounds" : {},
"server" : "SERVER:27017"
}
【问题讨论】:
标签: mongodb