Invention Grant
- Patent Title: Optimized sorting of variable-length records
-
Application No.: US15960385Application Date: 2018-04-23
-
Publication No.: US10824558B2Publication Date: 2020-11-03
- Inventor: Ashish Mittal , Steve Simon Joseph Fernandez , Kenneth Khiaw Hong Eng
- Applicant: Oracle International Corporation
- Applicant Address: US CA Redwood Shores
- Assignee: Oracle International Corporation
- Current Assignee: Oracle International Corporation
- Current Assignee Address: US CA Redwood Shores
- Agency: Kilpatrick Townsend & Stockton LLP
- Main IPC: G06F16/00
- IPC: G06F16/00 ; G06F12/04 ; G06F3/06 ; G06F7/36 ; G06F16/28

Abstract:
Optimized techniques are disclosed for sorting variable-length records using an optimized amount of memory while maintaining good locality of references. The amount of memory required for sorting the variable length records is optimized by reusing some of the memory used for storing the variable length records being sorted. Pairs of input runs storing variable length records may be merged into a merged run that contains the records in a sorted order by incrementally scanning, sorting, and copying the records from the two input runs being merged into memory pages of the merged run. When all the records of a memory page of an input run have been processed or copied to the merged run, that memory page can be emptied and released to a cache of empty memory pages. Memory pages available from the cache of empty memory pages can then be used for generating the merged run.
Public/Granted literature
- US20180314465A1 OPTIMIZED SORTING OF VARIABLE-LENGTH RECORDS Public/Granted day:2018-11-01
Information query