Data table index set generation method and device
An index collection and data table technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of low index efficiency, achieve the effects of improving overall performance, saving storage resources, and improving accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] In order to solve the technical problems existing in the prior art, this embodiment provides a method for generating a data table index set, such as figure 1 As shown, the method includes the following steps:
[0056] S101: Scan the statistical information of the data table to be analyzed in the database, and update the field selectivity information table according to the statistical information;
[0057] Here, the scanning cycle can be set in advance, and the statistical information of the data table to be analyzed in the database is scanned at the beginning of each scanning cycle;
[0058] Wherein, the data table to be analyzed is an existing table in the database, including field information used by all application programs of all set periods, that is: the data table to be analyzed can reflect the historical information of the field; the field selectivity information The table is used to store fields in descending order of selectivity.
[0059] When the field infor...
Embodiment 2
[0093] This embodiment and Embodiment 1 belong to the same inventive concept. This embodiment provides a device for generating a data table index set. The structure diagram of the device in this embodiment is as follows figure 2 As shown, the device includes:
[0094] The field selectivity initialization unit 201 is used to scan the statistical information of the data table to be analyzed in the database, and update the field selectivity information table according to the statistical information;
[0095] SQL information collection unit 202, used for collecting SQL information used when the application program runs from the database;
[0096] Here, the collected SQL information can be stored in the SQL collection information table; the SQL collection information table includes the execution times of the SQL statement, the SQL execution plan and the SQL statement;
[0097]The SQL execution information parsing unit 203 is configured to parse the SQL information, obtain the fi...
Embodiment 3
[0126] This embodiment describes the present invention in detail through an actual scene.
[0127] The embodiment of the present invention uses a new technical idea to evaluate and correct the rationality of the data table index design, and through a set of program devices designed according to the new idea, it can identify a large number of application programs running in a complex system to access the data table The purpose of the optimal index set needed, and through this identification method, evaluate and correct the current index design status of the application.
[0128] The logical structure diagram of this embodiment is as follows image 3 As shown, the basic idea is:
[0129] ①: The field selection rate initialization unit queries which data tables to be analyzed need to identify the optimal set of indexes;
[0130] ②, ③: The field selectivity initialization unit queries whether the data tables to be analyzed have statistical information through the database interf...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com