Towards Dev

A publication for sharing projects, ideas, codes, and new theories.

Follow publication

Databases: Overview of Row vs Column Oriented

Tanay Vaswani
Towards Dev
Published in
3 min readNov 14, 2024

--

What is a Row-Oriented Database?

Example of a Row-Oriented Database

Query Example for a Row-Oriented Database

| id | name   | age | city     |
|----|--------|-----|----------|
| 1 | Alice | 30 | New York |
| 2 | Bob | 25 | Chicago |
| 3 | Carol | 28 | Boston |
SELECT * FROM users WHERE id = 1;

Advantages and Disadvantages of Row-Oriented Databases

Pros:

Cons:

What is a Column-Oriented Database?

Example of a Column-Oriented Database

Query Example for a Column-Oriented Database

SELECT age FROM users;

Advantages and Disadvantages of Column-Oriented Databases

Pros:

Cons:

Choosing the Right Database: Row vs Column

Conclusion

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Published in Towards Dev

A publication for sharing projects, ideas, codes, and new theories.

Written by Tanay Vaswani

0 Followers

21, Software Engineer, Building Distributed & Machine Learning Systems at Scale

No responses yet

Write a response