Data merging and sorting method and apparatus
A sorting method and data technology, applied in the database field, can solve the problem of low efficiency of merging and sorting of massive data, and achieve the effect of avoiding adverse effects, avoiding reading and writing operations, and improving system performance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] figure 1 It is a flow chart of a method for merging and sorting data provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of merging and sorting massive data according to available memory resources, and the method can be executed by a data merging and sorting device , the device can be realized by means of software and / or hardware, and is generally integrated into a terminal device, such as a PC or a tablet computer. Such as figure 1 As shown, the method of this embodiment specifically includes:
[0034] S110. According to at least two sorted sub-tables corresponding to the data to be sorted, generate sub-table control information corresponding to each of the sorted sub-tables, wherein the sub-table control information includes data in the sorted sub-tables Minimum, maximum, and access addresses for sorted sublists.
[0035]Generally speaking, the sorting buffer in the memory resources performs merge and sort operations on...
Embodiment 2
[0057] figure 2It is a flow chart of a method for merging and sorting data provided by Embodiment 2 of the present invention. Embodiment 2 of the present invention is optimized on the basis of Embodiment 1. Specifically, according to the type of sorting, the control information of each sub-table is optimized. Sorting, the operation of obtaining the subtable control information queue is further optimized, such as figure 2 As shown, Embodiment 2 of the present invention specifically includes:
[0058] S210. According to at least two sorted sub-tables corresponding to the data to be sorted, generate sub-table control information corresponding to each of the sorted sub-tables, wherein the sub-table control information includes data in the sorted sub-tables Minimum, maximum, and access addresses for sorted sublists.
[0059] S220. According to the sorting type, sort the control information of each sub-list in ascending order of the smallest value to obtain a sub-list control in...
Embodiment 3
[0072] image 3 It is a flow chart of a data merging and sorting method provided by Embodiment 3 of the present invention. Embodiment 3 of the present invention is optimized and improved on the basis of the above-mentioned embodiments, and the sub-table control information in the queue according to the sub-table control information The order of arrangement, order to obtain at least one sorted subtable that satisfies the merge condition and join the merge queue is further explained, such as image 3 As shown, the method of the third embodiment of the present invention specifically includes:
[0073] S310. According to at least two sorted sub-tables corresponding to the data to be sorted, generate sub-table control information corresponding to each of the sorted sub-tables, wherein the sub-table control information includes data in the sorted sub-tables Minimum, maximum, and access addresses for sorted sublists.
[0074] S320. According to the sorting type, sort the sub-table ...
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