---
title: "Discussion on \"Rows vs Columns: The Cache-Line Math That Decides Your Database Layout\" | Hashnode"
description: "Discussion on \"Rows vs Columns: The Cache-Line Math That Decides Your Database Layout\". A 48-byte record holds a 4-byte column you actually need. Reading that one column through a row-oriented layout pulls twelve times more bytes from mem"
url: "https://hashnode.com/posts/rows-vs-columns-the-cache-line-math-that-decides-your-database-layout/6afc8e710ec7e06f0ac02ba5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Rows vs Columns: The Cache-Line Math That Decides Your Database Layout](https://dispatch-blog.hashnode.dev/rows-vs-columns-the-cache-line-math-that-decides-your-database-layout?utm_source=hashnode&utm_medium=feed)

A 48-byte record holds a 4-byte column you actually need. Reading that one column through a row-oriented layout pulls twelve times more bytes from mem

4h ago · 9 min read · dispatch-blog.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#llm](https://hashnode.com/tag/llm)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Eve](https://hashnode.com/@chenyuan20509)

@chenyuan20509 · Guangzhou, China

  
[View profile](https://hashnode.com/@chenyuan20509)

Building tools for developers. Writing about AI, software engineering, and indie hacking.

Indie dev &amp; technical writer. Building tools at the intersection of AI and developer experience. 10 years of full-stack engineering. Sharing what I learn along the way.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
