Discussion on mongodb implementation paging

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.