Elimination of query fragment duplication in complex database queries

A database engine includes one or more computing devices, each having one or more processors and memory. The memory stores programs configured for execution by the processors. The database engine receives a database query from a client, and parses the database query to build a query operator tree. T...

Full description

Saved in:
Bibliographic Details
Main Authors Muehlbauer, Tobias, Vogelsgesang, Adrian, Cole, Richard L, Finis, Jan, Then, Manuel, Neumann, Thomas, Haubenschild, Michael
Format Patent
LanguageEnglish
Published 18.10.2022
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:A database engine includes one or more computing devices, each having one or more processors and memory. The memory stores programs configured for execution by the processors. The database engine receives a database query from a client, and parses the database query to build a query operator tree. The query operator tree includes a plurality of query operators. The database engine performs one or more optimization passes on the query operator tree, including a deduplication optimization pass, to form an optimized execution plan. The deduplication optimization pass includes determining that a first query operator is equivalent to a second query operator during a traversal of the query operator tree, and replacing the second query operator with a link to reuse results from the first query operator. The database engine executes the optimized execution plan to retrieve a result set from the database and returns the result set to the client.
Bibliography:Application Number: US202017064490