这是一个创建于 3709 天前的主题,其中的信息可能已经有所发展或是发生改变。
现在是每天的数据在一个集合里,怎么查询这些集合里的特定数据?只查最新的10条数据
2 条回复 • 2014-08-21 19:07:28 +08:00
|
|
1
kaulie 2014-08-21 13:40:52 +08:00
对排序字段加索引,然后直接limit(10)不行行了,不知道楼主的真正意图?@haython
|
|
|
2
haython 2014-08-21 19:07:28 +08:00
@ kaulie 用户的访问日志,每天一个集合,现在要查出一个用户的最后10条记录
|