Random record from MongoDB

Posted by Will M on Stack Overflow See other posts from Stack Overflow or by Will M
Published on 2010-05-13T02:43:16Z Indexed on 2010/05/13 2:54 UTC
Read the original article Hit count: 238

Filed under:

I am looking to get a random record from a huge (100 million record) mongodb. What is the fastest and most efficient way to do so? The data is already there and there are no field in which I can generate a random number and obtain a random row. Any suggestions?

© Stack Overflow or respective owner

Related posts about mongodb