Early return of partial sort results in a database system
Abstract
As described herein, a database machine is provided with specialized hardware that can be used to accelerate the sort function. This hardware lowers the computation cost of performing a raw sort operation over the result rows. The hardware may be embodied in a direct circuit (e.g., ASIC), a programmable circuit (e.g., FPGA), a parallel compute engine (e.g., GPU) or any parallel computer. A hardware-assisted sort procedure provides for the early return of up to K results. This early return feature is critically valuable in database operations because often an entire result set is not required. For requests that require only the first L results, when L<=K the query can be satisfied with only a single pass over the data. The hardware- or GPU-assisted sort procedure, referred to herein as “scraper sort,” may be based on modifications of well-known, existing parallel sort algorithms.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A database system comprising: a processor; a co-processor coupled to the processor, the co-processor having a hardware configuration to perform sorting operations faster than said processor, the co-processor being configured to: commence a sort operation of a data set in response to instructions from the processor by: initially sorting the data set into a current set of locally sorted subsets, and performing a first scraper sort iteration that generates a first globally-sorted partial result set and a set of remaining locally-sorted subsets based on a single pass over the current set of locall
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (5)
- D .E. Knuth. The Art of Computer Programming, vol. 3: Sorting and Searching, Third Edition. Addison-Wesley, 1998. ISBN 0-201-89685-0. Section 5.3.4: Networks for Sorting, pp. 219-247.
- Govindaraju et al. "GPUTeraSort: Hight Performance Graphics Co-processor Sorting for Large Database Management", Microsoft Technical Report MSR TR-20050185, Nov. 2005, Revised Mar. 2006, pp. 1-12.
- Nvidia GPU, "GPU Gems 2" GPU Gems-Chapter 46. Improved GPU Sorting, http://http.devel oper.nvidia.com/GPUGems2/gpugems2-chapter46.html, last accessed Jan. 9, 2013, 20 pages.
- Wikipedia, "Batcher odd-even Mergesort", http://en.wikipedia.org/wiki/Batcher-odd- even-mergesort, last accessed Jan. 9, 2013, 2 pages.
- Wikipedia, "Bitonic Sort", http://en.wikipedia.org/wiki/Bitonic-sort, last accessed Jan. 9, 2013, 3 pages.