SQLAlchemy + Postgres Cheatsheet 11 — Partitioning

Cheatsheet: declarative partitioning, partition creation, query pruning, pg_partman automation.

May 13, 2026 · 2 min · 306 words · Manvendra Rajpoot

SQLAlchemy + Postgres Cheatsheet 12 — pgvector (Embeddings)

Cheatsheet: vector column, HNSW vs IVFFlat, cosine / L2 / inner-product distance, RAG hybrid filter.

May 13, 2026 · 3 min · 511 words · Manvendra Rajpoot

SQLAlchemy + Postgres Cheatsheet 12 — Schema-Per-Tenant

Cheatsheet: per-tenant schemas, search_path, multi-schema Alembic env, onboarding.

May 13, 2026 · 2 min · 358 words · Manvendra Rajpoot

SQLAlchemy + Postgres Cheatsheet 13 — Backups, PITR, Logical Backup

Cheatsheet: pg_dump options, pg_basebackup, pgBackRest, WAL archiving, RPO/RTO planning, restore tests.

May 13, 2026 · 3 min · 587 words · Manvendra Rajpoot

SQLAlchemy + Postgres Cheatsheet 13 — DB-Per-Tenant

Cheatsheet: per-tenant engine cache, connection routing, multi-DB Alembic, onboarding.

May 13, 2026 · 3 min · 487 words · Manvendra Rajpoot

SQLAlchemy + Postgres Cheatsheet 14 — pgvector for Embeddings

Cheatsheet: Vector column, cosine_distance / l2 / inner_product, HNSW index, hybrid filter + ANN.

May 13, 2026 · 3 min · 476 words · Manvendra Rajpoot

SQLAlchemy + Postgres Cheatsheet 14 — Replication and Failover

Cheatsheet: streaming vs logical replication, Patroni, multi-host failover URLs, read replicas.

May 13, 2026 · 3 min · 559 words · Manvendra Rajpoot

SQLAlchemy + Postgres Cheatsheet 15 — Maintenance (VACUUM, ANALYZE, REINDEX)

Cheatsheet: VACUUM variants, ANALYZE for stats, REINDEX for bloat, autovacuum tuning.

May 13, 2026 · 3 min · 528 words · Manvendra Rajpoot

SQLAlchemy + Postgres Cheatsheet 15 — Replication, Read Replicas, and Failover

Cheatsheet: writer/reader engines, target_session_attrs, read-after-write, replica lag awareness.

May 13, 2026 · 3 min · 484 words · Manvendra Rajpoot

SQLAlchemy + Postgres Cheatsheet 16 — Postgres Extensions

Cheatsheet: the extensions worth knowing — pg_trgm, citext, pg_partman, pg_cron, pgvector, PostGIS, pgaudit.

May 13, 2026 · 3 min · 569 words · Manvendra Rajpoot