MongoDB破碎的索引?

时间:2014-03-27 19:43:08

标签: mongodb

运行以下查询时:我得到45条结果:

{
    nid: {$in: [20,38,70,93,129,132,138,140,143,145,148,149,152,153,154,156,159,160,163,165,166,169,170,171,173,174,176,187,201,204,206,207,209,212,213,215,216,217,236,269,297,345,348,358,370]}               
}

将以下索引添加到集合中时,我得到2-3个结果(随机让我添加):

{
   "nid": NumberLong(1),
   "blacklist": NumberLong(1),
   "uid": NumberLong(1) 
}

这是一个错误还是我错过了什么?

0 个答案:

没有答案