YOUR AD GOES HERE

I reduced the search time on 900k items in db from 55.567 ms to 0.051 ms (How i did this ?)

Published 20, Sep 2026

Jeolardo


Description:
I had 900K+ products in PostgreSQL, and searching for a product by SKU was using a Sequential Scan.

In this video, I show how I used a B-tree index on the SKU column to change the query execution plan and reduce the search time.

I also use EXPLAIN ANALYZE to compare the query before and after the index and see what PostgreSQL is actually doing under the hood.

Topics:

* PostgreSQL indexes
* B-tree indexes
* Sequential Scan vs Index Scan
* EXPLAIN ANALYZE
* Query performance
* Database optimization
* PostgreSQL performance

Don't forget to follow me

LinkedIn: https://www.linkedin.com/in/abdelkader-ould-hennia
Twitter: https://x.com/Kader_1680
GitHub: https://github.com/Kader1680

Releted More Videos

  • Sorry!!! Nothing to show

You May Also Like

YOUR AD GOES HERE

YOUR AD GOES HERE