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.

6 Energieoptimierungen<br />

Relative Kosten = 872389265<br />

Abfrageplan<br />

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

Read temp-file C, looping on %SQLUPPER(L_SHIPMODE) and a counter.<br />

For each row:<br />

Output the row.<br />

module B<br />

Read master map SQLUser.LINE<strong>IT</strong>EM.LINE<strong>IT</strong>EMPRIMARYIDX, looping on L_ORDERKEY and<br />

L_LINENUMBER.<br />

For each row:<br />

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

Check distinct values for %SQLUPPER(L_SHIPMODE) using temp-file B,<br />

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

For each distinct row:<br />

Add a row to temp-file C, subscripted by %SQLUPPER(L_SHIPMODE) and a counter,<br />

with node data of %SQLUPPER(O_ORDERPRIOR<strong>IT</strong>Y), the hashing, and [value].<br />

Update the accumulated sum([expression]) in temp-file B,<br />

subscripted by the hashing.<br />

Update the accumulated sum([expression]) in temp-file B,<br />

subscripted by the hashing.<br />

Abbildung 6.1: Abfrageplan TPC-H Abfrage 12 ohne zusätzlichen Index.<br />

For each distinct row:<br />

Add a row to temp-file C, subscripted by %SQLUPPER(L_SHIPMODE)<br />

and a counter,<br />

with node data of %SQLUPPER(O_ORDERPRIOR<strong>IT</strong>Y),the hashing,and [value].<br />

Update the accumulated sum([expression]) in temp-file B,<br />

subscripted by the hashing.<br />

Update the accumulated sum([expression]) in temp-file B,<br />

subscripted by the hashing.<br />

Als letzter Schritt der Abfrageausführung wird die group-by <strong>und</strong> order-by Bedingung<br />

berechnet.<br />

Read temp-file C, looping on %SQLUPPER(L_SHIPMODE) and a counter.<br />

For each row:<br />

Output the row.<br />

Es fällt sofort auf, dass der Abfrageplan nicht detailliert ist, denn die Überprüfung<br />

von l_commitdate, l_receiptdate <strong>und</strong> l_shipdate wird nicht aufgeführt. Es ist davon<br />

auszugehen, dass der Abfrageoptimierer intelligent genug ist, diese Überprüfung<br />

während der Iteration auf lineitem auszuführen, bevor er die weiteren Bedingungen<br />

überprüft.<br />

90

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

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!