为了速度,我想将查询限制为10个结果
db.collection.find( ... ).limit(10)
但是,我也想知道总数,所以说"有124但我只有10".有一个很好的有效方法吗?
mongodb
mongodb ×1