Details
-
New Feature
-
Resolution: Duplicate
-
Minor - P4
-
None
-
None
-
None
-
Any
Description
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