Mongodb $ in limit

Just wondering if the restriction on the Mongodb $ function was?

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

I have a user collection (BIG) and I have a small subset of ObjectIds, and I want to select all the users (collections) that are in my ObjectIds.

thanks

+6
source share
1 answer

Since there is no limit to the number of elements in the array as such, you should not have any problems. For the case when the array is embedded inside the document, you can look at them:

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

Word Filtering

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

+4
source

Source: https://habr.com/ru/post/919550/


All Articles