If the same predicate appears twice in two different operators, it is acceptable to skip getting a count for both.
如果相同的断言在两个不同的操作中出现两次,可以跳过其中一个。
MongoDB query results are stored in cursors that provide a range of functions for filtering, aggregation, and sorting including limit(), skip(), sort(), count(), distinct() and group().
MongoDB 查询结果存储在提供过滤、聚合和排序等一系列功能的游标中,包括 limit()、skip()、 sort()、count()、 distinct() 和 group()。
So finding a successful method is very simple, count from one to ten don't skip.
原来寻找成功的方法很简单,从一数到十不要跳过就可以了。
应用推荐