29.01.2014 Views

Chapter 6: Query Decomposition and Data Localization

Chapter 6: Query Decomposition and Data Localization

Chapter 6: Query Decomposition and Data Localization

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Data</strong> <strong>Localization</strong>s Issues – Reduction of HF<br />

• Reduction with selection for HF<br />

– Consider relation R with horizontal fragmentation F = {R 1 , R 2 , . . . , R k }, where<br />

R i = σ pi (R)<br />

– Rule1: Selections on fragments, σ pj (R i ), that have a qualification contradicting the<br />

qualification of the fragmentation generate empty relations, i.e.,<br />

σ pj (R i ) = ∅ ⇐⇒ ∀x ∈ R(p i (x) ∧ p j (x) = false)<br />

– Can be applied if fragmentation predicate is inconsistent with the query selection<br />

predicate.<br />

• Example: Consider the query: SELECT * FROM EMP WHERE ENO=”E5”<br />

After commuting the selection<br />

with the union operation,<br />

it is easy to detect that the<br />

selection predicate contradicts<br />

the predicates of EMP 1<br />

<strong>and</strong> EMP 3 .<br />

DDB 2008/09 J. Gamper Page 20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!