30.08.2013 Aufrufe

Green-IT und Datenbanken - ODBMS

Green-IT und Datenbanken - ODBMS

Green-IT und Datenbanken - ODBMS

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

6 Energieoptimierungen<br />

Relative Kosten = 3010269<br />

Abfrageplan<br />

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

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

For each row:<br />

Output the row.<br />

module D<br />

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

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

Read temp-file B, looping on %SQLUPPER(L_SHIPMODE) and ID.<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 C,<br />

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

For each distinct row:<br />

Add a row to temp-file D, 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 C,<br />

subscripted by the hashing.<br />

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

subscripted by the hashing.<br />

module B<br />

Read index map SQLUser.LINE<strong>IT</strong>EM.LRECIEPTDATEIDX, looping on L_RECEIPTDATE (with a<br />

range condition), L_ORDERKEY, and L_LINENUMBER.<br />

For each row:<br />

Add a row to temp-file A, subscripted by ID,<br />

with no node data.<br />

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

For each row:<br />

module C<br />

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

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

with node data of L_ORDERKEY.<br />

Abbildung 6.2: Abfrageplan Abfrage 12 mit zusätzlichem Index auf Spalte<br />

lreceiptdate.<br />

92

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

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!