04.01.2014 Views

Optimizing SQL Insert Performance - GSE Belux

Optimizing SQL Insert Performance - GSE Belux

Optimizing SQL Insert Performance - GSE Belux

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Randomised Index Key<br />

• Index contention can be a major problem and a limit for scalability<br />

• This problem is more severe in data sharing because of index page P-<br />

lock contention<br />

• A randomized d index key can reduce lock contention<br />

ti<br />

• CREATE/ALTER INDEX … column-name RANDOM,<br />

instead of ASC or DESC<br />

• Careful trade-off required between lock contention relief and additional<br />

getpages, g read/write I/Os, and increased number of lock requests<br />

• This type of index can provide dramatic improvement or degradation!<br />

– e.g. Very bad choice for applications with range predicates<br />

• Recommend making randomized indexes only when buffer pool resident<br />

41<br />

© 2010 IBM Corporation

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

Saved successfully!

Ooh no, something went wrong!