×

Code generation for queries in a database system

  • US 10,620,925 B2
  • Filed: 03/30/2017
  • Issued: 04/14/2020
  • Est. Priority Date: 03/13/2017
  • Status: Active Grant
First Claim
Patent Images

1. A method, comprising:

  • obtaining a user query in a query language, the user query comprising at least one query parameter for selecting data from a content database;

    obtaining machine code that is executable directly by a processing system, corresponding to a compiled version of the user query, by;

    parsing the user query to identify a skeletal form of the user query in the structured query language;

    generating byte code defining a plurality of functions corresponding to a compiled version of the skeletal form of the user query, andobtaining the machine code corresponding to the compiled version of the user query based on the byte code, by retrieving compiled machine code for the byte code defining one or more of the plurality of functions if available or generating machine code for the byte code defining one or more of the plurality of functions when not available;

    wherein the machine code corresponding to the compiled version of the user query comprises at least one unresolved symbol and obtaining the machine code comprises;

    retrieving a memory address at which additional machine code corresponding to the at least one unresolved symbol is stored;

    replacing the at least one unresolved symbol with the corresponding memory address; and

    executing the machine code corresponding to the compiled version of the user query using the at least one query parameter, thereby returning a result of the user query satisfying the at least one query parameter.

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