Invention Grant
- Patent Title: Dynamic rebuilding of query execution trees and reselection of query execution operators
-
Application No.: US15681294Application Date: 2017-08-18
-
Publication No.: US10795887B1Publication Date: 2020-10-06
- Inventor: Michael Schreier , Thomas Neumann , Viktor Leis , Alfons Kemper , Tobias Muehlbauer , Jan Finis
- Applicant: Tableau Software, Inc.
- Applicant Address: US WA Seattle
- Assignee: Tableau Software, Inc.
- Current Assignee: Tableau Software, Inc.
- Current Assignee Address: US WA Seattle
- Agency: Morgan, Lewis & Bockius LLP
- Main IPC: G06F16/00
- IPC: G06F16/00 ; G06F16/2453 ; G06F16/2455

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.
Information query