Patents
US 7,433,863 B2#1975616 Most CitedExpiredUnited States (USPTO)Utility

SQL code generation for heterogeneous environment

33Forward Citations (#1975616 Global)
1.8/yrCitation Velocity (#2442129 Global)
3.21Citation PageRank (#6797991 Global)
16Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

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)

  1. 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 ↗

References Cited — Backward Prior Art (16)

PatentTitleYearCitations
US 4,829,427 ADatabase query code generation and optimization based on the cost of alternate access methods1989196
US 5,091,852 ASystem for optimizing query processing in a relational database1992221
US 5,301,317 ASystem for adapting query optimization effort to expected execution time1994141
US 5,806,059 ADatabase management system and method for query process for the same1998153
US 5,875,334 ASystem, method, and program for extending a SQL compiler for handling control statements packaged with SQL query statements1999290
US 5,930,795 ASupporting dynamic tables in SQL query compilers1999131
US 6,219,660 B1Access path selection for SQL with variables in a RDBMS2001102
US 2001052108 A1System, method and article of manufacturing for a development architecture framework—306
US 6,353,819 B1Method and system for using dynamically generated code to perform record management layer functions in a relational database manager200282
US 2003233632 A1Automatically generated client application source code using database table definitions—41
US 2004148420 A1Programmable streaming data processor for database appliance having multiple processing unit groups—100
US 2004181537 A1System with Methodology for Executing Relational Operations Over Relational Data and Data Retrieved from SOAP Operations—130
US 6,907,546 B1Language-driven interface for an automated testing framework2005493
US 2006129605 A1System and method for automating the development of web services that incorporate business rules—151
US 7,089,448 B2Disk mirror architecture for database appliance200655

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.