发明名称 Method of Converting Query Plans to Native Code
摘要 Performing database queries. A method includes receiving a particular database query. The method further includes accessing a query plan based on the particular database query. The query plan has operators and specific operational parameters associated with each of the operators. The association of operators and specific operational parameters is specific to the particular database query. From the query plan, the method further includes instantiating a plurality of compiled code templates. Each code template includes executable code that when executed performs functionality of one of the operators from the query plan with the specific operational parameters applied in the compilation. The method further includes binding the code templates together using programmatic control flow to create a functioning program.
申请公布号 US2016078084(A1) 申请公布日期 2016.03.17
申请号 US201514949302 申请日期 2015.11.23
申请人 Microsoft Technology Licensing, LLC 发明人 Freedman Craig Steven;Ismert Erik
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项 1. A computer-implemented method for translating database queries into native machine code so that use of an interpreter which employs statically written code to process a given query can be eliminated, to improve efficiency of processing the given query, the computer-implemented method being performed by one or more processors executing computer-executable instructions for the computer-implemented method, and the computer-implemented method comprising: receiving a particular database query; accessing a query plan based on the particular database query, the query plan having operators and specific operational parameters associated with each of the operators, the association of operators and specific operational parameters being specific to the particular database query; from the query plan generating one or more mixed abstract trees that represent metadata, imperative logic, expressions and query plans; and based on the one or more mixed abstract trees, using programmatic control flow to create native machine code for the particular database query that can be executed natively without having to process the query plan using an interpreter which employs statically written code.
地址 Redmond WA US