20150516 icde2015 r19-4

Download 20150516 icde2015 r19-4

Post on 20-Jul-2015

176 views

Category:

Technology

0 download

Embed Size (px)

TRANSCRIPT

  • Founda'ons of Query Processing R19-4: Dynamic Programming: The Next Step

    Takeshi Yamamuro 20150516@ICDE2015study

    1

  • Outline

    joingroup-by

    |R|DP

    2

  • Backgrounds

    R

    join selec'vitytuple Hyper [9]100x1000x

    3

    SELECT a.gid, SUM(b.value), AVG(b.value) FROM a LEFT OUTER JOIN b ON (a.id= b.id) GROUP BY a.gid

  • Backgrounds

    90 [4][5][6][7][8]

    5 le_ semijoin le_ an'join le_ outerjoin full outerjoin groupjoin [11]

    4

  • ex.) outerjoin

    5

    e1push-down GFSUMAVG

    e1e2qfull outerjoin

    e1push-down

  • ex.) outerjoin

    6

    e1push-down

    G+1e1G1J1 G+1F11(c1:count(*))

    * Fdecomposability/splimability-A. 2)/3)

    F*decomposability/splimability

  • ex.) outerjoin

    7

    e1push-down

    * -BElimina'ng the Top Grouping

    *

  • : 10

    8

    Not Explained

  • O(22|R|-1#ccp) ccp(csg-cmp-pair)*join graph

    S1S2 PostgreSQL|R|

  • Bellmans Principle of Op'mality

    DP

    10

    push-down

  • Bellmans Principle of Op'mality

    DP

    11

  • Bellmans Principle of Op'mality

    DP

    12

  • EA-All: EA-Prune: EA-All +

    H1: 1DP H2: H1 + push-down

    13

  • |R|=32010,000

    14

    Fig.16 Fig.17

Recommended

View more >