Method and system for carrying out multi-dimensional regional inquiry on distribution type sequence table
A distributed sequence table and multi-dimensional technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problems of slow query speed, long response time, real-time retrieval of massive data, large system load, etc., and achieve low storage capacity Overhead, High Reliability, Effects of Increased Speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] figure 1 It is a flowchart of a method for performing multi-dimensional interval query on a distributed sequence table described in Embodiment 1 of the present invention, as shown in figure 1 As shown, the specific methods of this embodiment include:
[0030] S101. Create a secondary index table for each index column;
[0031] The data stored in the distributed sequence table is divided horizontally into multiple fragments (Region) according to the primary key. Each fragment stores a piece of data sorted according to the primary key, and at the same time distributes the fragments to multiple fragmentation servers (RegionServer). Support high-speed point query and interval query by primary key, and support high-speed random data reading and writing. Each table can have one or more columns, and operations such as column-by-column projection are supported.
[0032] When data is queried, the query condition is often given by specifying one or more columns, which are ofte...
Embodiment 2
[0048]In order to further optimize the interval query of the distributed sequence table, when it is necessary to perform interval query on the index column, before step S102 of the first embodiment, it may further include a fragmentation information estimation optimization query step; in order to ensure the distributed sequence The data in the table and the index table can always be kept consistent, and when the distributed sequence table needs to be updated, the present invention can also include a consistent update step.
[0049] Shard information estimation optimization query steps:
[0050] When it is necessary to perform interval queries on index columns, the query plan tree is merged and deduplicated preprocessed, and then the query logic is converted into a disjunctive formula and then executed in parallel. During execution, the subquery with the smallest result set is selected from the conjunction sub-form Execute, while other subqueries filter the result set in the fo...
Embodiment 3
[0061] According to the same idea, the present invention also provides a system for performing multi-dimensional interval query on a distributed sequence table, image 3 It is a structural block diagram of the system for performing multi-dimensional interval query on the distributed sequence table described in this embodiment. Such as image 3 As shown, the system for performing multi-dimensional interval query on the distributed sequence table described in this embodiment includes:
[0062] The index table building module 301 is used to build an index table on the distributed sequence table, wherein: an index table is created for each index column of the distributed sequence table, and the index column value of the distributed sequence table is , the primary key value, and the length sequence of the index column value are spliced together as the primary key of the index table, and the primary key is the secondary index of the distributed sequence table;
[0063] When data...
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