System and method for performing a sort operation in a relational database manager to pass results directly to a user without writing to disk
Abstract
In a relational database system, a method is utilized that increases the performance of the sort operation. An optimizer routine in the relational database manager analyzes a user's complete query to determine whether the final sorted results can be used directly by the user as sorting occurs. If the sort results can be used, the sort results are sent to Relational Data Services in the relational database manager for output to the user. Depending upon the determination made by the optimizer routine, one of two output modes for the final sorted sequence string of data are selected by the relational database manager. In disk output mode, the last pass of the final sorted sequence spring is written to disk. In fast direct output mode, the records of data are sent to the user as the final sorted sequence string is being merged during the last pass. The system and method of this invention reduces the total sort time by eliminating the overhead of writing the disk during the fast direct output mode. Also, the response time, or availability for each record is reduced since each record is retrieved or sent to the Relational Data Services immediately after it has been sorted into the fi
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 41.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of processing a query statement in a relational database system, said method comprising the steps of: reading said query statement into said relational database system; generating a plan for said processing of said query statement with said relational database system; analyzing, by said relational database system, said plan for processing the query statement; selecting by said relational database system a mode for directiong output of a sort operation of said plan, said mode selection being responsive to said analyzing of said plan; directly passing, in a first mode, said outp
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 41 total)
References Cited — Backward Prior Art (14)
Non-Patent Literature (5)
- D. Cornell et al., "Vertical Partitioning for Relational Databases", IBM Technical Disclosure Bulletin, vol. 30, No. 9, 2/88, pp. 474-477.
- D. Cornell et al., Vertical Partitioning for Relational Databases , IBM Technical Disclosure Bulletin, vol. 30, No. 9, 2/88, pp. 474 477.
- M. M. Astrahan et al., "Access Path Selection in a Relational Database Management System", IBM Technical Disclosure Bulletin, vol. 22, No. 4, 9/79, pp. 1657-1660.
- M. M. Astrahan et al., Access Path Selection in a Relational Database Management System , IBM Technical Disclosure Bulletin, vol. 22, No. 4, 9/79, pp. 1657 1660.
- P. Y. Chang et al., "Bit Block Mapping for Sorting Records in a File", IBM Technical Disclosure Bulletin, vol. 24, No. 10, 3/82, p. 4995.