Member-only story

Understanding the Battle of Database Storage: Row-Oriented vs. Columnar

Sunny Srinidhi
7 min readMar 8, 2024

--

In the vast landscape of databases, where data reigns supreme, lies a critical decision point for architects and developers alike: row-oriented storage versus columnar storage. This choice can significantly impact performance, storage efficiency, and query speed, making it imperative to grasp the nuances of each approach. In this exploration, we delve into the depths of row-oriented and columnar storage, unraveling their intricacies and shedding light on which might be the best fit for your data-driven endeavours.

Row-Oriented Storage: The Traditional Approach

Row-oriented storage is the conventional method of storing data in databases. In this model, data is organised and stored row by row, with each row containing all the fields (attributes or columns) for a particular record. This approach aligns well with transactional databases where operations primarily involve fetching entire rows.

One of the primary advantages of row-oriented storage is its suitability for transactional processing. Since transactions typically involve working with complete records, retrieving entire rows becomes efficient. Additionally, row-oriented storage simplifies data updates and inserts, as the entire record is stored contiguously.

--

--

Sunny Srinidhi
Sunny Srinidhi

No responses yet