<Insert Picture Here>
Supporting Time-Constrained SQL Queries in Oracle
Ying Hu, Seema Sundara, Jagannathan Srinivasan
Oracle New England Development Center One Oracle Drive, Nashua, NH 03062
Supporting Time-Constrained SQL Queries in Oracle Ying Hu, Seema - - PowerPoint PPT Presentation
<Insert Picture Here> Supporting Time-Constrained SQL Queries in Oracle Ying Hu, Seema Sundara, Jagannathan Srinivasan Oracle New England Development Center One Oracle Drive, Nashua, NH 03062 Talk Outline The Problem and Our Approach
<Insert Picture Here>
Ying Hu, Seema Sundara, Jagannathan Srinivasan
Oracle New England Development Center One Oracle Drive, Nashua, NH 03062
VLDB 2007
2
VLDB 2007
3
<Insert Picture Here>
VLDB 2007
4
VLDB 2007
5
VLDB 2007
6
[SIGMOD 1997] M. Carey, D. Kossmann: On saying “enough already!” in SQL.
[VLDB 1999] S. Chaudhuri, L. Gravano: Evaluating Top-k Selection Queries. [VLDB 1999] D. Donjerkovic, R. Ramakrishnan: Probabilistic Optimization of Top N Queries.
[VLDB J. 2004] I. F. Ilyas, W. G. Aref, A. K. Elmagarmid: Supporting Top-k Join Queries in Relational Databases.
VLDB 2007
7
[SIGMOD 1997] J. M. Hellerstein, P. J. Haas, H. J. Wang: Online Aggregation. [DMKD 2000] J. M. Hellerstein, R. Avnur, V. Raman: Informix under CONTROL: Online Query Processing.
VLDB 2007
8
VLDB 2007
9
VLDB 2007
10
VLDB 2007
11
<Insert Picture Here>
VLDB 2007
12
VLDB 2007
13
VLDB 2007
14
VLDB 2007
15
VLDB 2007
16
VLDB 2007
17
SAMPLECOUNT ESTIMATEDCOUNT COUNTCONFIDENCE 207000 1200900 14000
VLDB 2007
18
<Insert Picture Here>
VLDB 2007
19
VLDB 2007
20
VLDB 2007
21
VLDB 2007
22
VLDB 2007
23
VLDB 2007
24
VLDB 2007
25
VLDB 2007
26
VLDB 2007
27
VLDB 2007
28
VLDB 2007
29
10 270 300 300 300
Estimated Time
PART TABLE ACCESS FULL 4 LINEITEM TABLE ACCESS FULL 3 HASH JOIN 2 SORT AGGREGATE 1 SELECT STATEMENT
… Name Operation Id
VLDB 2007
30
VLDB 2007
31
<Insert Picture Here>
VLDB 2007
32
VLDB 2007
33
VLDB 2007
34
block I/O)
TPC-H Q6
244 55 133 178 196 228 269 27 54 81 108 135 50 100 150 200 250 300
q6 q6- 10% q6- 20% q6- 30% q6- 40% q6- 50% Time (in seconds) exec. est.
VLDB 2007
35
N/A N/A 1230113636 100% 21449857 1229137335 617119157 50% 24081572 1228986671 489547623 40% 27692357 1228624043 370097887 30% 34194884 1230244879 243045023 20% 49916216 1228484983 113894821 10% sumConfidence (confidence interval) estimatedSum SUM % of time 95% Confidence Interval computing using Hoeffding-based bounds
VLDB 2007
36
VLDB 2007
37
key reference to O_ORDERKEY
TPC-H Q10
636 77 86 97 143 300 699 71 140 210 280 347 100 200 300 400 500 600 700 800
q10 q10- 10% q10- 20% q10- 30% q10- 40% q10- 50% Time (in seconds) exec. est.
VLDB 2007
38
0.06895 0.9396 22.03549 7.47554 2.11497 5 10 15 20 25
q10-10% q10-20% q10-30% q10-40% q10-50% Tim e Constraint Sample Size
VLDB 2007
39
estimation
generation, and accurate estimation of the query execution time
VLDB 2007
40