Column-Oriented Storage
7 min read.
Answer one analytics query from a row store and a column store, count the cells each reads, then compress a sorted column with run-length encoding.
Think of it this way: A row store is a stack of order forms: to total every price you must flip through every whole form. A column store is a set of ledgers, one per field. To total prices you open just the price ledger and the country ledger, and line number 5 in each refers to the same order.
Find the total price of orders from CA. A row store keeps each order together on disk.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Row store or column store?
Sort each workload or trait by the layout it fits.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Row store
Drop items hereColumn store
Drop items hereQuiz
8 questionsWhich workload benefits most from a column store?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.