SQL code generation for heterogeneous environment
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. in one preferred embodiment, the method begins by receiving a subject query, and then forming an execution plan corresponding to the subject query. The execution plan will typically have a sequence of component snippets or pieces and corresponding processes for implementing the pieces. For at least one piece in the plan, the process then (a) generates source code using different code generation techniques as a function of expected runtime processing machine types; and then (b) compiles the generated source code to form machine executable code for implementing the subject query. As a result, the query executed directly as machine executable code thereby avoiding runtime interpretation of the pieces in the execution plan.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 33.
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; and for at least one piece of the plan, (a) generating source code using different code generation techniques as a function of an expected processing machine type; and (b) compiling the generated source code to form machine executable code for im
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 33 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.