Practice
White Room
Community
Tools
The same four sales rows, laid out two ways on disk. Shaded cells hold the amount column.
sales
amount
Roughly how many bytes must each layout read to answer SELECT sum(amount) FROM sales, ignoring compression?
SELECT sum(amount) FROM sales
Row store about 180 GB, column store about 45 GB, because a column chunk still carries the other columns in its row group
Row store about 180 GB, column store about 1.6 GB
Row store about 180 GB, column store about 180 GB, because both have to visit all 200 million rows
About 1.6 GB either way, since a B-tree index on amount lets the row store read only that column too
Sign in to answer questions and track your progress