pgvector Deep Dive — HNSW, IVFFlat, and Tuning Postgres for Vector Search

Everything you need to make pgvector fast in production: HNSW vs IVFFlat, distance operators, m and ef_construction, ef_search at query time, partial indexes for multi-tenant data, and benchmarking your real workload.

April 28, 2026 · 8 min · 1531 words · Manvendra Rajpoot

Build a Production RAG App with pgvector and FastAPI in 2026

A complete, end-to-end RAG backend built on PostgreSQL + pgvector and FastAPI. Real chunking, real embeddings, hybrid (vector + BM25) retrieval, prompt assembly, citations, and production gotchas.

April 28, 2026 · 8 min · 1679 words · Manvendra Rajpoot

PostgreSQL Full-Text Search Without an Extra Service

Postgres ships with surprisingly capable full-text search built-in. Here’s how to use it for ranked text search without adding Elasticsearch to your stack.

April 28, 2026 · 7 min · 1279 words · Manvendra Rajpoot

PostgreSQL Indexing and EXPLAIN: Make Slow Queries Fast

Learn to read EXPLAIN ANALYZE output, pick the right index type for the query, and turn slow Postgres queries into fast ones — without guessing.

April 28, 2026 · 7 min · 1472 words · Manvendra Rajpoot

FastAPI + SQLAlchemy + PostgreSQL: A Modern Setup

Build a production-ready FastAPI + SQLAlchemy 2.0 + PostgreSQL stack with async sessions, dependency-injected DB access, and Alembic migrations.

April 28, 2026 · 7 min · 1364 words · Manvendra Rajpoot

Django ORM Deep Dive: QuerySets, N+1, and Making the Database Behave

Everything I wish I’d known about the Django ORM earlier — how querysets really work, the N+1 problem, select_related vs prefetch_related, and the patterns that keep production code fast.

April 28, 2026 · 7 min · 1410 words · Manvendra Rajpoot

PostgreSQL Fundamentals Every Backend Developer Should Know

A primer on the parts of PostgreSQL that backend developers use every day — proper data types, indexing strategies, transactions, JSONB, CTEs, and more.

April 28, 2026 · 7 min · 1329 words · Manvendra Rajpoot

How to Connect PostgreSQL with Django

Step-by-step guide to creating a PostgreSQL database, a dedicated user with sane defaults, and wiring it into a Django project via environment variables.

January 21, 2024 · 5 min · 899 words · Manvendra Rajpoot