Queries with soft time constraints
AssigneeOracle International Corporation
InventorsYing Hu, Seema Sundara, Jagannathan Srinivasan
Life of this patent
Estimating the term…
Abstract
Systems, methodologies, media, and other embodiments associated with supporting queries with soft time constraints are described. One exemplary system embodiment includes logic for accepting a query having a soft time constraint. The example system may also include logic for rewriting the query having the soft time constraint into a query having a row limitation or a sample percentage limitation. In one example, the row limitation or sample percentage limitation are computed by repetitively comparing an estimated query execution time to the soft time constraint.
Claims33
A system, comprising:
- a receive logic to receive a first query having a soft time constraint;
- an analytics logic to provide a predicted execution time for a query;
- and
- a constraint rewrite logic to selectively produce a rewritten query based on the first query, the rewritten query having a restricted result clause, where the restricted result clause depends, at least in part, on the predicted execution time.
A computer-readable medium storing processor executable instructions that when executed by a processor cause the processor to perform a method, the method comprising:
- receiving a first select statement having a soft time constraint clause, the select statement describing a desired selection of one or more rows from a set of tables;
- determining an execution time estimate for the first select statement;
- selecting from the set of tables a subset of tables from which row selection is to be limited, where the subset of tables is selected based, at least in part, on the soft time constraint clause and the execution time estimate;
- selecting a method by which row selection from a member of the subset of tables is to be limited, where the method selected is based, at least in part, on the soft time constraint clause and the execution time estimate;
- selecting an amount by which row selection from a member of the subset of tables is to be limited, where the amount selected is based, at least in part, on the soft time constraint clause and the execution time estimate;
- and
- providing a second select statement having at least one additional clause to limit selection of rows from a member of the subset of tables by the selected amount according to the selected method, the second select statement being based on the first select statement.
A system, comprising:
- means for computing a predicted execution time for a query having a soft time constraint;
- and
- means for rewriting the query based, at least in part, on the predicted execution time and the soft time constraint, where the rewriting includes replacing the soft time constraint with a result set limitation clause.
Dependencies are inferred from the claim text.