×

Method of converting query plans to native code

  • US 9,767,147 B2
  • Filed: 11/23/2015
  • Issued: 09/19/2017
  • Est. Priority Date: 03/12/2013
  • Status: Active Grant
First Claim
Patent Images

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 code from which native machine code for the particular database query can be compiled and executed natively without having to process the query plan using an interpreter which employs statically written code, and wherein using said programmatic control flow comprises;

    transforming the one or more mixed abstract trees into one or more simpler data structures which are convertible to said machine executable code; and

    binding the one or more simpler data structures to create the 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.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×