阅读背景:

如何使用MongoMapper以随机顺序获取文档?

来源:互联网 

I cannot use Array#shuffle since I don't fetch all documents (I only fetch up to twenty documents). How can I fetch random documents from a MongoDB database using MongoMapper (i.e. in MySQL one would use since I don't fetch




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: