hottub.patents
US 12,650,985 B2#3222110 Most CitedActiveUnited States (USPTO)Utility

Transforming structured query language queries to expedite query execution

0Forward Citations (#3222110 Global)
0.0/yrCitation Velocity (#3222110 Global)
0.00Citation PageRank (#3222110 Global)
2Prior Art Cited
8Claims (1 Indep. · 7 Dep.)
0Drawings / Sheets

Abstract

A method for transforming structured query language queries to expedite query execution includes detecting an explode operator in a structured query language query plan that is designed to execute a structured query language query against a database, identifying a query fragment within the structured query language query plan that starts with the explode operator and ends with a second operator, and replacing the query fragment in the structured query language query plan with an optimized query fragment in which the second operator operates directly on vectors that are a target of the second operator.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 0.

Claims (8 — 1 Independent, 7 Dependent)

  1. Claim 1Independent Claim

    A method comprising: detecting, by a processing system including at least one processor, an explode operator in a structured query language query plan that is designed to execute a structured query language query against a database, wherein the database stores a dataset containing at least one field that is an array of vectors; identifying, by the processing system, a query fragment within the structured query language query plan that starts with the explode operator and ends with a second operator that aggregates away a plurality of explode fields generated from the array of vectors by the explode operator; and replacing, by the processing system, the query fragment in the structured query language query plan with an optimized query fragment in which the second operator operates directly on the array of vectors so that computations associated with the second operator are performed on the array of vectors in situ in the at least one field, without generating the plurality of explode fi

  2. Claim 2Depends on #1

    The method of claim 1, wherein the second operator is an aggregate operator.

  3. Claim 3Depends on #2

    The method of claim 2, wherein the aggregate operator performs one of: a sum operation, a minimum operation, a maximum operation, an average operation, or a media operation.

  4. Claim 4Depends on #1

    The method of claim 1, wherein the second operator operates directly on the array of vectors without exploding the array that contains the vectors.

  5. Claim 5Depends on #1

    The method of claim 1, wherein the second operator utilizes at least one of: a filtering operation, a transformation operation, a join operation, or a window operation.

  6. Claim 6Depends on #1

    The method of claim 1, further comprising: adding, by the processing system after the replacing, an explode operator to an end of the optimized query fragment to recreate an expected output of the query fragment.

  7. Claim 7Depends on #1

    The method of claim 1, further comprising: detecting, by the processing system, another explode operator in the structured query language query plan that is located below another operator in the structured query language query plan that is one of: an aggregate operator, a takeorderedandproject operator, or a collectlimit operator.

  8. Claim 8Depends on #7

    The method of claim 7, further comprising: moving, by the processing system, the another operator under the another explode operator in the structured query language query plan.

Technical Overview & Description

The present disclosure relates generally to data management, and relates more particularly to devices, non-transitory computer-readable media, and methods for transforming structured query language queries to expedite query execution. BACKGROUND A relational database is a type of database that stores data in tabular form, where the rows and columns represent different data attributes and the relationships between the different data attributes. Data stored in these relational databases may be managed using structured query language (SQL), which is a programming language that is used in many applications. SQL statements may be used to store, update, remove, search, and retrieve data from a relational database. SUMMARY In one example, the present disclosure describes a device, computer-readable medium, and method for transforming structured query language queries to expedite query execution. For instance, in one example, a method performed by a processing system including at least one processor includes detecting an explode operator in a structured query language query plan that is designed to execute a structured query language query against a database, identifying a query fragment within the structured query language query plan that starts with the explode operator and ends with a second operator, and replacing the query fragment in the structured query language query plan with an optimized query fragment in which the second operator operates directly on vectors that are a target of the second operator. In another example, a non-transitory computer-readable medium stores instructions which, when executed by the processing system, cause the processing system to perform operations. The operations include detecting an explode operator in a structured query language query plan that is designed to execute a structured query language query against a database, identifying a query fragment within the structured query language query plan that starts with the explode operator

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (2)

PatentTitleYearCitations