Optimize Query of big data tables

Source: Internet
Author: User

The first thing we think of is creating an index. Creating an index can multiply the query efficiency and save time. However, if the data volume is too large, simply creating an index at this time will not help. We know that if we count queries in large data volumes, this attribute can be used to classify the created index. In this way, the query speed will be doubled or higher. However, the only drawback is that the compressed index can only be created manually. For those, if you write a class that imitates the subquery effect, you will find that the compression index is terrible, we can use joint queries or external connection queries, which is much faster than subqueries. : When Using indexes, note the following :! This will invalidate the index. If you do not use the conditions, adding a handler to the field will not use the index of the column. If you do not use the index, or if you do not use the index, you will not use the index.

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.