Dynamic rebuilding of query execution trees and reselection of query execution operators
US10795887B1 · kind B1 · utility
Assignee
Inventors
Key dates
| Filing date | Aug 18, 2017 |
| Grant date | Oct 6, 2020 |
| Priority date | — |
| Expiry date | Jan 27, 2039 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F16/2455
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
A database engine receives a query and parses the query to form a first intermediate query. The engine compiles the first intermediate query to form a first executable plan that includes in-memory operators that execute within memory without swapping to secondary memory. While executing a first in-memory operator in the first executable plan, the engine detects insufficient memory and aborts execution of the first executable plan. The engine optimizes the first intermediate query to form a second intermediate query, and compiles the second intermediate query to form a second executable plan. The second plan includes spooling operators that execute within fixed memory budgets and are configured to swap to the secondary memory when needed. The engine executes the second executable plan, including the spooling operators, to retrieve results from the database that are responsive to the query. The engine then returns the retrieved results.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.