-
Type:
New Feature
-
Resolution: Duplicate
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Querying
-
None
-
Environment:Any
-
None
-
None
-
None
-
None
-
None
-
None
-
None
It would be very nice to have the ability to ask mongoDB for a random sample for a given collection. I know this can be done via js but
I might be much more efficient if this was built in especially for large collections.
Something like
blee.find(
{ $rand:1000 }) => retrieves a random sample of size 1k