columnstores vs. rowstores: how different are they really?
TRANSCRIPT
![Page 1: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/1.jpg)
ColumnStores vs. RowStores:How Different Are They
Really?
a LIT reviewby Megan Fantes
![Page 2: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/2.jpg)
First, what are column-stores and what are row-stores?
Row-stores: Column-stores:
![Page 3: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/3.jpg)
Is one better than the other?
Answer: it depends
Are you WRITING a lot?
OR
Are you READING a lot?
![Page 4: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/4.jpg)
Is one better than the other?
Answer: it depends
Are you WRITING a lot?
OR
Are you READING a lot?
![Page 5: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/5.jpg)
Now, on to the paper...
1. Advantages of column stores in read-mostly environments
2. Tests the performance of a row-store database that has
been modified to act like a column-store
3. Tests each optimization of a column-store to figure out
which gives the largest increase in performance
![Page 6: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/6.jpg)
Advantages of Column-Stores
What are some advantages of column stores that you can think of?
![Page 7: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/7.jpg)
Advantages of Column-Stores
What are some advantages of column stores that you can think of?
● Late materialization● Block iteration● Compression● Invisible joins (new in this paper)
![Page 8: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/8.jpg)
What in the Heck are “Invisible Joins”?
![Page 9: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/9.jpg)
What in the Heck are “Invisible Joins”?
Phase 1
Phase 2Phase 3
![Page 10: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/10.jpg)
Modifying a Row-Store Database3 ways to make a row-store behave like a column-store:
1. Vertical partitioning2. Index-only plans3. Materialized views
![Page 11: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/11.jpg)
Results:
![Page 12: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/12.jpg)
Testing Column-Store Optimizations:
Testing the 4 advantages of column-stores:
● Late materialization● Block iteration● Compression● Invisible joins
![Page 13: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/13.jpg)
Results:
![Page 14: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/14.jpg)
Results:
![Page 15: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/15.jpg)
What Would I Add to This?
A case study
● Awesome, we have these cool column-stores● But how are we going to use them?
![Page 16: ColumnStores vs. RowStores: How Different Are They Really?](https://reader036.vdocument.in/reader036/viewer/2022062605/62b54100b4f3262ea024c0b6/html5/thumbnails/16.jpg)
Thanks for listening to my
LIT
review