您的位置:首页 > 数据库 > Mongodb

mongodb too much data sort

2012-11-28 10:28 288 查看
database error: too much data for sort() with no index.  add an index or specify a smaller limit


解决方案:

唯有加索引

Try adding
{community_id: 1, 'updated_at.t': -1}
index. It needs to search by
community_id
first and then sort.

具体是否能够解决问题还待验证
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐