[SERVER-587] Ability to ask for random samples Created: 30/Jan/10  Updated: 30/Jan/10  Resolved: 30/Jan/10

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Fernand Galiana Assignee: Eliot Horowitz (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Any


Participants:

 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



 Comments   
Comment by Eliot Horowitz (Inactive) [ 30/Jan/10 ]

see SERVER-533

Generated at Thu Feb 08 02:54:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.