IT lexicon › Database › Row-oriented storage

Row-oriented storage

Database På svenska → Updated: 2026-11-12

Storage layout where all columns of a row are stored contiguously on disk, as opposed to column-oriented.

Row-oriented is standard for transactional databases (OLTP) like Oracle, MySQL, and PostgreSQL. All information about an order — ID, customer, amount, date — sits together in memory. This is efficient for transactions because you typically read or write complete rows, not individual columns. An update to an order requires the whole row, and returning order details to a user means fetching one row.

Column-oriented storage (Parquet, ORC, Redshift) stores all order IDs together, all amounts together, and so on. This excels for analytics where a query sums amounts across millions of orders while ignoring customer ID entirely. But it's terrible for updates and ACID compliance, so column storage dominates data warehouses and OLAP, while row storage dominates operational databases. The difference is one of workload: transactions need random row access; analytics needs sequential column scanning.

← Back to the lexicon