Deriving session level statistics for temporary tables
First Claim
Patent Images
1. A method for using statistics for temporary tables in optimizing the execution of a database request, the method comprising:
- creating a first temporary table using data from a data source as the result of performing an operation while executing the database request;
after creating the first temporary table, saving a subset of demographics of the data source in a session level memory, which is memory available to a session with which the database request is associated for a life of the session, as the demographics of the first temporary table; and
using the saved demographics of the first temporary table in optimizing the execution of a portion of the database request involving the first temporary table.
1 Assignment
0 Petitions
Accused Products
Abstract
Statistics for temporary tables are used in optimizing the execution of a database request. A first temporary table is created using data from a data source as the result of performing an operation while executing the request. A subset of the demographics of the data source is saved in a session level memory as the demographics of the first temporary table. The saved demographics are used in optimizing the execution of the portion of the request involving the first temporary table.
-
Citations
18 Claims
-
1. A method for using statistics for temporary tables in optimizing the execution of a database request, the method comprising:
-
creating a first temporary table using data from a data source as the result of performing an operation while executing the database request; after creating the first temporary table, saving a subset of demographics of the data source in a session level memory, which is memory available to a session with which the database request is associated for a life of the session, as the demographics of the first temporary table; and using the saved demographics of the first temporary table in optimizing the execution of a portion of the database request involving the first temporary table. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A database system comprising:
-
one or more nodes; a plurality of CPUs, each of the one or more nodes providing access to one or more CPUs; a plurality of virtual processes, each of the one or more CPUs providing access to one or more virtual processes; each virtual process configured to manage data, including rows from the set of database table rows, stored in one of a plurality of data-storage facilities; a process configured to use statistics for temporary tables in optimizing the execution of a database request by; creating a first temporary table using data from a data source as the result of performing an operation while executing the database request; after creating the first temporary table, saving a subset of demographics of the data source in a session level memory, which is memory available to a session with which the database request is associated for a life of the session, as the demographics of the first temporary table; and using the saved demographics of the first temporary table in optimizing the execution of a portion of the database request involving the first temporary table. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer program, stored in a tangible medium, for using statistics for temporary tables in optimizing the execution of a database request, the program comprising executable instructions that cause a computer to:
-
create a first temporary table using data from a data source as the result of performing an operation while executing the database request; after creating the first temporary table, save a subset of demographics of the data source in a session level memory, which is memory available to a session with which the database request is associated for a life of the session, as the demographics of the first temporary table; and use the saved demographics of the first temporary table in optimizing the execution of a portion of the database request involving the first temporary table. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification