Well, create an index and you are fine :-)
-aj
Revant Jain wrote:
> suppose,
>
> db.test.find({ num : { $in : [1,2,3,4] } });
>
> if the array has over 100 elements, is the array search against num
> field sequential (O(n)) or binary (O(log(n))?
>
--
ZOPYX Limited | zopyx group
Charlottenstr. 37/1 | The full-service network for Zope & Plone
D-72070 T�bingen | Produce & Publish
www.zopyx.com |
www.produce-and-publish.com
------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting