For the discussion of mongodb implementation paging group disadvantages: www.2cto. com1.group statement in sharded? 2. group? The returned result set 100003 is required. the group has no limit or skip restrictions. 4. in paging scenarios, a paging link at each point triggers an aggregation operation. Advantages: 1. small result sets directly return data without holding
For the discussion of mongodb implementation paging group disadvantages: www.2cto.com 1. the group statement is in sharded? 2. group? The returned result set 10000 is required. 3. the group has no limit or skip restrictions. 4. in paging scenarios, a paging link at each point triggers an aggregation operation. Advantages: 1. small result sets directly return data without holding
Discussion on mongodb implementation paging
Disadvantages of group: www.2cto.com
1. the group statement is in sharded? Unavailable in mode
2. group? Result set returned <10000
3. the group has no limit or skip restrictions.
4. in paging scenarios, each page link triggers an aggregation operation.
Advantages:
1. data is directly returned from a small result set without being persisted to a temporary table.
Benefits of Using mapReduce:
1. all mongoDB modes are common.
2. the first query generates all paging information to the temporary table. the primary key index + offset will be used for subsequent paging queries. try not to use the skip syntax.
Disadvantages:
1. persistence to temporary tables
2. you need to name a temporary table for each session to prevent conflicts.