Optimized SQL code generation
Abstract
This invention relates generally to a system for processing database queries, and more particularly to a method for generating high level language or machine code to implement query execution plans. The present invention provides a method for generating executable machine code for query execution plans, that is adaptive to dynamic runtime conditions, that is compiled just in time for execution and most importantly, that avoids the bounds checking, pointer indirection, materialization and other similar kinds of overhead that are typical in interpretive runtime execution engines.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 35.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for generating machine executable code for implementing a query of a database, the database having tables and records of data, comprising the steps of: receiving a subject query; forming an execution plan corresponding to the subject query, the execution plan having a sequence of pieces and corresponding processes for implementing the pieces; for each piece of the plan, (a) generating source code using different code generation techniques as a function of any combination of data characteristics, current conditions and workload, and (b) compiling the generated source code to form machi
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 35 total)
References Cited — Backward Prior Art (16)
Non-Patent Literature (5)
- "SQLpp is a SQL Query Generation Framework for C++ and .NET." [online], [retrieved on Jun. 21, 2004]. Retrieved from the Internet :http://sqlpp.sourceforge.net/.
- Andreas, S., "SQL Where-The Easy Way," [online], [retrieved on Jun. 21, 2004]. Retrieved from the internet http://www.codeproject.com/database/cwhere.asp?print=true.
- Gerbes, T. et al., Implementing Dynamic Code Assembly for Client-Based Query Processing, Database Systems for Advanced Applications '95, Proceedings of the Fourth International Conference on Database Systems for Advanced Applications World Scientific, Singapore, Apr. 10, 1995, pp. 264-272.
- Graefe, G. and W.J. McKenna, "The Volcano Optimizer Generator: Extensibility and Efficient Search," Proceedings of the International Conference on Data Engineering,, Comp. Soc. Press, vol. Conf. 9, Apr. 19, 1993, pp. 209-218.
- Pittenger, R., "C++ Object Oriented Database Generator" [online], [retrieved on Jun. 21, 2004]. Retrieved from the Internet URL: http://www.codeproject.com/database/obgen.asp.