Home
Sign Up
Sign In
推荐工具
›
RoboMongo
推荐书目
›
50 Tips and Tricks for MongoDB Developers
Related Blogs
›
Snail in a Turtleneck
V2EX
›
MongoDB
mongo 如何查询多个集合?
displayabc
·
Jul 29, 2014
· 6835 views
This topic created in 4482 days ago, the information mentioned may be changed or developed.
现在是每天的数据在一个集合里,怎么查询这些集合里的特定数据?只查最新的10条数据
mongo
集合
查询
2 replies
•
2014-08-21 19:07:28 +08:00
kaulie
Aug 21, 2014
1
对排序字段加索引,然后直接limit(10)不行行了,不知道楼主的真正意图?@haython
displayabc
OP
Aug 21, 2014
2
@
kaulie
用户的访问日志,每天一个集合,现在要查出一个用户的最后10条记录
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1263 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms ·
UTC 21:04
·
PVG 05:04
·
LAX 13:04
·
JFK 16:04
♥ Do have faith in what you're doing.
❯