Patents
US 7,734,620 B2#15647636 Most CitedActiveUnited States (USPTO)Utility

Optimizing a database query that fetches N rows

7Forward Citations (#15647636 Global)
0.4/yrCitation Velocity (#18317417 Global)
1.60Citation PageRank (#20708134 Global)
23Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

An apparatus and method to optimize a query access plan in a computer database system. In preferred embodiments, the query optimizer determines the query can be optimized and generates for the query an optimized access plan that eliminates records defined by a Where clause and one or more ordering criteria prior to ordering the records (sorting or grouping) and then returning a first n rows.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 23 · Forward citations: 7.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    An apparatus comprising: at least one processor; a memory coupled to the at least one processor containing a database of records; a query residing in the memory that includes a Select statement with a Fetch First n Rows Only clause, where n is an integer variable; a query optimizer residing in the memory and executed by the at least one processor, wherein the query optimizer: determines that the query can be optimized and generates for the query an optimized access plan that eliminates records defined by a Where clause prior to ordering the records and then returns a first n rows; determines t

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (23)

PatentTitleYearCitations
US 4,829,427 ADatabase query code generation and optimization based on the cost of alternate access methods1989196
US 5,598,559 AMethod and apparatus for optimizing queries having group-by operators1997205
US 5,864,840 AEvaluation of existential and universal subquery in a relational database management system for increased efficiency199994
US 5,950,188 ADatabase system with methods for executing system-created internal SQL command statements199981
EP 0,965,928 A2System and techniques for fast approximate query answering—14
US 6,032,143 AEvaluation of existential and universal subquery in a relational database management system for increased efficiency200072
US 6,341,281 B1Database system with methods for optimizing performance of correlated subqueries by reusing invariant results of operator tree2002329
US 2003055813 A1Query optimization by sub-plan memoization—87
US 2003093408 A1Index selection in a database system—266
US 6,598,041 B1Method, system, and program for processing modifications to data in tables in a database system200332
US 6,606,626 B1Database system with lock manager enhancement for improving concurrency2003131
US 2003187858 A1Database system providing methodology for acceleration of queries involving functional expressions against columns having enumerated storage—60
US 6,643,637 B2Method, system, and program for using a fetch request to make data available to an application program200310
US 6,654,039 B1Method, system and program for scrolling index scans200329
US 2005033730 A1Query optimization by sub-plan memoization—27
US 7,007,009 B2Representation for data used in query optimization200636
US 2006095440 A1Method and process of query optimization to a given environment via specific abstraction layer domain knowledge—24
US 2006224563 A1Query plan selection control using run-time association mechanism—84
US 2007038618 A1System and method for automatically generating database queries—81
US 2007083490 A1Optimizing access to a database by utilizing a star join—20
US 2007130115 A1Optimizing a query that includes a large in list—17
US 2008021868 A1Apparatus and method for optimizing a computer database query that fetches n rows—7
US 2008021869 A1Apparatus and method for optimizing a computer database query that fetches n rows—9

Non-Patent Literature (1)

  • "Treating Data Transformations as Objects", Sep. 1992, IBM Technical Disclosure Bulletin, vol. 35, Issue 4A, pp. 200-205.