Sujith’s Blog
HomeArticlesCategoriesAbout
Back to Articles

The Real Cost of Indexes

Indexing isn't free. Let's look at what we actually pay for faster reads.

By Sujith M.S.·Sep 10, 2026·8 min read
DatabasesSystemsPerformance
Share
The Real Cost of Indexes
The Real Cost of Indexes

The Real Cost of Indexes

We all say:

"The query is slow? Just index it."

But indexing isn't free.

You're trading one cost for another.

1. Storage

An index is a separate data structure sitting next to your table.

More indexes means more disk space.

For example:

SELECT pg_size_pretty(
  pg_relation_size('users')
);
 
SELECT pg_size_pretty(
  pg_relation_size('idx_users_email')
);

You might also like

Sep 26, 2026 · 5 min read

Your Article Title

A short description of what this article is about.

SystemsDatabases

On this page

1. Storage

About this article

PublishedSep 10, 2026
Reading time8 min
TopicsDatabases, Systems, Performance
S

Sujith M.S.

Writing about software engineering, systems, AI and things I learn while building.

© 2026 Sujith M.S. All rights reserved.
HomeArticlesAboutBuilt with ♥ and Markdown.