14.02.2014 Views

Query Processing and Optimization

Query Processing and Optimization

Query Processing and Optimization

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• Statistics<br />

Operation 1: σ followed by a π<br />

• Relation statistics: r Film = 5,000 b Film = 50<br />

• Attribute statistics: s Title = 1<br />

• Index statistics: Secondary Hash Index on Title.<br />

• Result relation size: 1 tuple.<br />

• Operation: Use index with ‘Terminator’, then project<br />

on FilmID. Leave result in main memory (1 block).<br />

• Cost (in disk accesses): C 1 = 1 +1 = 2<br />

41

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

Saved successfully!

Ooh no, something went wrong!