What should I do if I want to query a large amount of data to the front-end display?

Source: Internet
Author: User
What should I do if I want to query a large amount of data to the front-end display? For example, if mysql has million pieces of data, and then it is queried in php and displayed on the front end, how can we increase the speed?


Reply to discussion (solution)

The cache technology depends on the frequency of data updates. if the update is fast, we recommend that you use memcache cache. if the update is not updated much, you should use file cache.

Million data is displayed on one screen ??

Are you kidding? Who can view 1 million rows of data?
If it's for you, do you see it?

No, it must be displayed by page ··

Million data is displayed on one screen ??
This is because the interviewer came to test me during my previous interview. At that time, I couldn't think of a better way, that is, to use the simplest query.

Paging. Index the table. If the data update is slow, cache the data.

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.