30.08.2013 Aufrufe

Green-IT und Datenbanken - ODBMS

Green-IT und Datenbanken - ODBMS

Green-IT und Datenbanken - ODBMS

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

Relative Kosten = 116234493<br />

Abfrageplan<br />

Call module D, which populates temp-file D.<br />

Read temp-file D, looping on O_TOTALPRICE, O_ORDERDATE, and a counter.<br />

For each row:<br />

Output the row.<br />

module D<br />

Call module B, which populates bitmap temp-file A.<br />

Call module C, which populates temp-file B.<br />

Read temp-file B, looping on O_TOTALPRICE, O_ORDERDATE, and ID.<br />

For each row:<br />

6.2 Energieeffizienz <strong>und</strong> Indizes<br />

Read master map SQLUser.CUSTOMER.CUSTORMERPRIMARYIDX, using the given idkey<br />

value.<br />

Read master map SQLUser.LINE<strong>IT</strong>EM.LINE<strong>IT</strong>EMPRIMARYIDX, using the given L_ORDERKEY,<br />

and looping on L_LINENUMBER.<br />

For each row:<br />

Check distinct values for ID and ID using temp-file C,<br />

subscripted by a hashing of these values.<br />

For each distinct row:<br />

Add a row to temp-file D, subscripted by O_TOTALPRICE, O_ORDERDATE, and a<br />

counter,<br />

with node data of ID, C_NAME, ID, L_QUANT<strong>IT</strong>Y, the hashing, and [value].<br />

Update the accumulated sum(L_QUANT<strong>IT</strong>Y) in temp-file C,<br />

subscripted by the hashing.<br />

module B<br />

Read index map SQLUser.ORDERS.OORDERDATEIDX, looping on O_ORDERDATE and ID.<br />

For each row:<br />

Add ID bit to bitmap temp-file A.<br />

Read bitmap temp-file A, looping on ID.<br />

For each row:<br />

module C<br />

Read master map SQLUser.ORDERS.ORDERSPRIMARYIDX, using the given idkey value.<br />

Add a row to temp-file B, subscripted by O_TOTALPRICE, O_ORDERDATE, and ID,<br />

with node data of O_CUSTKEY.<br />

Call module I, which populates temp-file E.<br />

Read temp-file E, looping on a counter.<br />

For each row:<br />

subquery<br />

Abbildung 6.13: Abfrageplan TPC-H Abfrage 18 mit zusätzlichem Index.<br />

Read temp-file F, using the given subscript values.<br />

Determine subquery result.<br />

module I<br />

111

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!