Overlap Interval Partition Join
Anton Dign¨
- s1
Michael H. B¨
- hlen1
Johann Gamper2
1University of Z¨
urich, Switzerland
2Free University of Bozen-Bolzano, Italy
Overlap Interval Partition Join os 1 ohlen 1 Johann Gamper 2 Anton - - PowerPoint PPT Presentation
Overlap Interval Partition Join os 1 ohlen 1 Johann Gamper 2 Anton Dign Michael H. B 1 University of Z urich, Switzerland 2 Free University of Bozen-Bolzano, Italy SIGMOD 2014 June 22-27, 2014 - Snowbird, Utah, USA Introduction
1University of Z¨
2Free University of Bozen-Bolzano, Italy
2012-1 2012-2 2012-3 2012-4 2012-5 2012-6 2012-7 2012-8 2012-9 2012-10 2012-11 2012-12
SIGMOD 2014 2/23
2012-1 2012-2 2012-3 2012-4 2012-5 2012-6 2012-7 2012-8 2012-9 2012-10 2012-11 2012-12
◮ Alternative for query optimizer when other predicates are absent,
SIGMOD 2014 2/23
SIGMOD 2014 3/23
t
SIGMOD 2014 4/23
t
t
SIGMOD 2014 4/23
SIGMOD 2014 5/23
Q
2012-1 2012-2 2012-3 2012-4 2012-5 2012-6 2012-7 2012-8 2012-9 2012-10 2012-11 2012-12
t
granule 0 granule 1 granule 2
SIGMOD 2014 5/23
Q
2012-1 2012-2 2012-3 2012-4 2012-5 2012-6 2012-7 2012-8 2012-9 2012-10 2012-11 2012-12
t
granule 0 granule 1 granule 2
Q
2012-1 2012-2 2012-3 2012-4 2012-5 2012-6 2012-7 2012-8 2012-9 2012-10 2012-11 2012-12
t
granule 0 granule 1 granule 2 granule 3
SIGMOD 2014 5/23
Q
2012-1 2012-2 2012-3 2012-4 2012-5 2012-6 2012-7 2012-8 2012-9 2012-10 2012-11 2012-12
t
granule 0 granule 1 granule 2
Q
2012-1 2012-2 2012-3 2012-4 2012-5 2012-6 2012-7 2012-8 2012-9 2012-10 2012-11 2012-12
t
granule 0 granule 1 granule 2 granule 3
SIGMOD 2014 5/23
2012-1 2012-2 2012-3 2012-4 2012-5 2012-6 2012-7 2012-8 2012-9 2012-10 2012-11 2012-12
SIGMOD 2014 6/23
2012-1 2012-2 2012-3 2012-4 2012-5 2012-6 2012-7 2012-8 2012-9 2012-10 2012-11 2012-12
SIGMOD 2014 6/23
2012-1 2012-2 2012-3 2012-4 2012-5 2012-6 2012-7 2012-8 2012-9 2012-10 2012-11 2012-12
SIGMOD 2014 6/23
2012-1 2012-2 2012-3 2012-4 2012-5 2012-6 2012-7 2012-8 2012-9 2012-10 2012-11 2012-12
◮ 9 result tuples ◮ 2 false hits (r1 ◦ s6 and r2 ◦ s5)
SIGMOD 2014 6/23
◮ All tuples in a partition behave similarly ◮ Very few false hits
◮ High cache locality ◮ Much faster than index look-ups SIGMOD 2014 7/23
SIGMOD 2014 8/23
SIGMOD 2014 9/23
SIGMOD 2014 9/23
SIGMOD 2014 10/23
◮ APA inner partition accesses (scans)
SIGMOD 2014 11/23
◮ AFR · ns false hits (inner) fetched
◮ Is compared with AFR · ns false hits (inner) ◮ Is AFR · ns times a false hits
SIGMOD 2014 12/23
SIGMOD 2014 13/23
SIGMOD 2014 14/23
◮ Divide time range recursively into two sub-ranges ◮ Join cells of outer relation with all relevant of inner relation
◮ Long-lived tuples reside high up in hierarchy (many FH) ◮ Cells grow with a factor of two (too much, many FH) ◮ Parent cells are required for children (many possibly empty partitions)
SIGMOD 2014 15/23
◮ Associate intervals with index node(s) ◮ Join index nodes or tuples of outer relation with all relevant of inner
◮ Long-Lived tuples reside high up in hierarchy (∼ many partitions) ◮ Requires many node joins (∼ many partitions) ◮ No physical clustering possible (2 indices) (∼ FH in storage)
3H.-P. Kriegel, M. Ptke, and T. Seidl. Managing intervals efficiently in object-relational
SIGMOD 2014 16/23
◮ Clustering guarantee is highly relevant for long-lived tuples ◮ CPU cost is also relevant for disk resident data SIGMOD 2014 17/23
SIGMOD 2014 18/23
SIGMOD 2014 19/23
SIGMOD 2014 20/23
SIGMOD 2014 21/23
SIGMOD 2014 22/23
SIGMOD 2014 23/23
SIGMOD 2014 23/23