mongodb $ in限制 [英] mongodb $in limit

查看:103
本文介绍了mongodb $ in限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否只是想知道Mongodb的$ in函数是否有限制?

Was just wondering if there is a limit to Mongodb's $in function?

http://www.mongodb.org/display/DOCS /Advanced + Queries#AdvancedQueries-%24in

我有一个用户集合(BIG),并且有一个较小的ObjectId子集散布在某个地方,我想选择我的ObjectId中的所有用户(集合).

I have a collection of users (BIG) and have a smaller subset of ObjectIds stashed somewhere, and I want to select all users (collections) that are in my ObjectIds.

谢谢

推荐答案

由于数组中的项数没有限制,因此您应该没有任何问题. 对于将数组嵌入文档中的情况,您可能需要查看以下内容:

Since there's no limit on the number of items in an array as such, you shouldn't have any problem.. For the case when the array is embedded inside a document, you might want to have a look at these:

http://groups.google.com /group/mongodb-user/browse_thread/thread/4a7caeba972aa998?fwc = 1

根据单词过滤内容

http://groups.google.com/group/mongodb -user/browse_thread/thread/28ae76e5ad5fcfb5

这篇关于mongodb $ in限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆