Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Columnstore index proper usage

I just learned about the wonders of columnstore indexes and how you can "Use the columnstore index to achieve up to 10x query performance gains over traditional row-oriented storage, and up to 7x data compression over the uncompressed data size."

With such sizable performance gains, is there really any reason to NOT use them?

like image 248
iliketocode Avatar asked Jun 28 '14 19:06

iliketocode


1 Answers

The main disadvantage is that you'll have a hard time reading only a part of the index if the query contains a selective predicate. There are ways to do it (partitioning, segment elimination) but those are neither particularly easy to reliably implement nor do they scale to complex requirements.

For scan-only workloads columnstore indexes are pretty much ideal.

like image 53
usr Avatar answered Sep 20 '22 18:09

usr