Queries with soft time constraints
First Claim
Patent Images
1. 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.
1 Assignment
0 Petitions
Accused Products
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.
-
Citations
33 Claims
-
1. 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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28)
-
-
29. 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. - View Dependent Claims (30, 31, 32)
-
-
33. 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.
-
Specification