Some ideas on how to improve database query speed

Source: Internet
Author: User

several ideas to improve the speed of database query:
1, cache, on the persistence layer or the persistence layer to do cache;
2, the database table large-scale segment stripping, to ensure that the data of a single record is very small;
3, the proper use of the index;
4, when necessary to establish multi-level index;
5, analysis of Oracle's execution plan, through the table data statistics and other ways to assist the database to get the correct query method, the walk index on the index, the whole table scan to go full table scan;
6. Table partitioning and splitting, whether it is a split on business logic (such as a one-month report, a sub-library) or a partition with no business meaning (for example, partition by ID);
7, RAC;
8, field redundancy, reduce cross-database query and large table connection operation;
9, the data through a single or multiple job generation, reduce real-time query;
10, from the disk on the fuss, the data stored in the disk on the internal and external tracks, the efficiency of data acquisition is not the same;
11. Discard some features of relational database and introduce NoSQL database;

12, different ideas to store data, such as the search in the inverted list;

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Some ideas on how to improve database query speed

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.