Method and device for generating composite index key value
A technology of compound index and generating device, applied in the database field, can solve problems such as low scanning efficiency, and achieve the effects of reducing scanning time, improving scanning efficiency, and reducing the amount of calculation.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0022] This embodiment provides a method for generating composite index key values. The method of this embodiment can be executed by a method device for generating a composite index key value in a numerical database, which can be implemented by means of hardware and / or software, and can generally be integrated into a relational numerical database
[0023] see figure 1 , the method for generating the composite index key value includes:
[0024] S110. Determine the leading column according to the filter condition.
[0025] A composite index (concatenated index) is an index composed of multiple columns, and the leading column may refer to the column before the first column with a filter condition. When building a composite index, the column before the first column with the filter condition of the composite index can be used as the leading column. For example: if there is a filter condition on column N+1 (N>0), then column 1 to column N are the leading columns.
[0026] Exempl...
Embodiment 2
[0034] Figure 4 It is the generation method of the compound index key value provided by the second embodiment of the present invention. This embodiment is optimized based on the above embodiment, and the key value of the leading column is created according to the value of the leading column, and the specific optimization is as follows : Generate the key-value tag of the current lookup column, the key-value tag includes the current values of all columns before the current lookup column; when the key-value tag remains unchanged, look up the difference value of the current lookup column; when the difference is found value, create the key value of the leading column according to the found difference value; when no difference value is found or all the difference values are searched, set the previous column of the current lookup column as the current lookup column until the current lookup column is the first column of the leading column.
[0035] see Figure 4 , the method fo...
Embodiment 3
[0050] Figure 5 is a schematic structural diagram of the device for generating composite index key values provided by Embodiment 3 of the present invention, as shown in Figure 5 As shown, the device includes:
[0051] A leading column determining module 310, configured to determine a leading column according to a filter condition;
[0052] A key value creation module 320, configured to create the key value of the leading column according to the numerical value of the leading column;
[0053] A key value generating module 330, configured to generate a key value of a composite index according to the key value of the leading column.
[0054] The device for generating a composite index key value provided in this embodiment generates a composite index key value by combining the value of the leading column with the filter condition. Using the generated composite key value to perform conditional scanning can eliminate the need for full index scanning and then perform screening...
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