All topics

Databases & HA

Replication, failover, pooling and keeping data alive when a node is not.

SQL Server, Azure SQL, PostgreSQL and Redis guides focused on what keeps data safe and fast: backups you have actually restored, high availability that fails over cleanly, and fixes for the errors that page you at night.

Start here

  1. PostgreSQL High Availability: A Production Manual for Patroni, etcd v3, HAProxy and PgBouncer

    How to build a PostgreSQL HA cluster with automatic failover and synchronous replication using Patroni, an etcd DCS, HAProxy health-check routing and PgBouncer connection pooling.

    9 min read
  2. SQL Server 2016 End of Support: ESUs via Azure Arc or Migrate to Azure SQL

    SQL Server 2016 left extended support on 14 July 2026. Compare buying Extended Security Updates through Azure Arc, upgrading in place, and migrating to Azure SQL Managed Instance.

    12 min read
  3. SQL Server vs PostgreSQL: Licensing and Cost for a Small Company

    Compare SQL Server Standard and Express licensing with free PostgreSQL for a new line-of-business app: license models, core minimums, Express limits and a cost worksheet.

    10 min read
  4. Azure SQL Database vs Managed Instance vs SQL Server VM: How to Choose

    Compare Azure SQL Database, Azure SQL Managed Instance and SQL Server on Azure VMs on compatibility, high availability, limits, cost model and management, then pick one with a repeatable assessment.

    15 min read
  5. SQL Server Error 1205 Deadlock Victim: Capture, Read and Fix Deadlocks

    Capture deadlock graphs with Extended Events in SQL Server and Azure SQL Database, read the victim, process and resource lists, and stop error 1205 with indexing, access order, row versioning and retries.

    14 min read
  6. Azure SQL Database Backups: Point-in-Time Restore, LTR and Geo-Restore

    Set PITR retention and backup redundancy, add a long-term retention policy, and run point-in-time, deleted-database, LTR and geo-restores for Azure SQL Database and Managed Instance.

    13 min read

All 26 guides, newest first

  1. Chroma Cloud Shutdown: Key Dates, Export Your Collections, Migrate

    Chroma Cloud goes read-only on December 7, 2026 and stops serving reads on December 22. How to export your collections and move to a self-hosted or managed vector store.

    14 min read
  2. pg_pinecone vs pgvector: Open-Source Vector Search in Postgres Compared

    What pg_pinecone is, how its native index differs from pgvector HNSW, what Pinecone's own benchmarks show, and how to test it on your data before you switch.

    11 min read
  3. SQL Server vs PostgreSQL: Licensing and Cost for a Small Company

    Compare SQL Server Standard and Express licensing with free PostgreSQL for a new line-of-business app: license models, core minimums, Express limits and a cost worksheet.

    10 min read
  4. MySQL vs PostgreSQL: Which Database Should You Choose for a New App?

    Compare MySQL and PostgreSQL on licensing, release and support policy, JSON handling, storage engine and operations so you can pick the right database for a new application.

    8 min read
  5. SQL Server Index Fragmentation: When to Rebuild or Reorganize an Index

    Measure index fragmentation and page density in SQL Server, then choose ALTER INDEX REORGANIZE, REBUILD or a statistics update, with online and resumable options.

    12 min read
  6. PostgreSQL EXPLAIN ANALYZE: How to Read Query Plans and Fix Slow SQL

    Read a PostgreSQL execution plan node by node, compare estimated and actual rows, spot sequential scans, spilling sorts and loops, and choose the right fix.

    12 min read
  7. PgBouncer Setup: Connection Pooling Modes and Config for PostgreSQL

    Install and configure PgBouncer for PostgreSQL, choose between session, transaction and statement pooling, size the pools, and monitor them from the admin console.

    9 min read
  8. Azure SQL Database Backups: Point-in-Time Restore, LTR and Geo-Restore

    Set PITR retention and backup redundancy, add a long-term retention policy, and run point-in-time, deleted-database, LTR and geo-restores for Azure SQL Database and Managed Instance.

    13 min read
  9. Azure SQL Database vs Managed Instance vs SQL Server VM: How to Choose

    Compare Azure SQL Database, Azure SQL Managed Instance and SQL Server on Azure VMs on compatibility, high availability, limits, cost model and management, then pick one with a repeatable assessment.

    15 min read
  10. Azure SQL Entra Authentication: Entra-Only Mode and Managed Identity

    Replace SQL logins on Azure SQL Database and Managed Instance with Microsoft Entra ID: set the Entra admin, create users for groups and managed identities, then enable Entra-only authentication.

    12 min read
  11. Azure SQL Failover Groups: Configure Geo-Failover for Database and MI

    Create Azure SQL failover groups for SQL Database and Managed Instance, point apps at the listener endpoints, choose a failover policy and run planned and forced failover drills.

    13 min read
  12. Azure SQL Managed Instance Link: Near-Zero Downtime Migration Runbook

    Migrate a SQL Server database to Azure SQL Managed Instance with the Managed Instance link: prepare SQL Server and the network, seed with SSMS, check lag, then fail over and cut over.

    12 min read
  13. Fix PostgreSQL 'sorry, too many clients already' with Limits and Pooling

    Find what is holding PostgreSQL connections, free slots safely, cap roles and databases, add PgBouncer pooling and size max_connections, including Azure Database for PostgreSQL.

    14 min read
  14. Fix Redis OOM 'command not allowed when used memory > maxmemory' Errors

    Diagnose and fix the Redis OOM maxmemory error on open-source Redis, Azure Cache for Redis and Azure Managed Redis by choosing the right eviction policy, TTLs and memory headroom.

    12 min read
  15. Migrate Azure Cache for Redis to Azure Managed Redis Before Retirement

    Azure Cache for Redis Basic, Standard and Premium retire on 30 September 2028. Size, create and cut over to Azure Managed Redis, including the new port, hostname and clustering changes.

    13 min read
  16. PostgreSQL Autovacuum Tuning: Fix Table Bloat and XID Wraparound Risk

    Measure bloat and transaction ID age, remove what blocks vacuum, and tune autovacuum thresholds, cost limits and per-table settings so large, busy PostgreSQL tables stay healthy.

    12 min read
  17. PostgreSQL Backups with pgBackRest: Full, Differential and PITR Restore

    Set up pgBackRest for PostgreSQL on Linux: WAL archiving, encrypted repositories, full and differential schedules, retention, an Azure Blob copy, and point-in-time recovery you have actually tested.

    13 min read
  18. PostgreSQL Logical Replication: Set Up, Monitor and Fix Slot Errors

    Configure PostgreSQL logical replication with publications and subscriptions, monitor slots and apply workers, and resolve conflicts, WAL build-up and invalidated slots.

    13 min read
  19. SQL Server 2016 End of Support: ESUs via Azure Arc or Migrate to Azure SQL

    SQL Server 2016 left extended support on 14 July 2026. Compare buying Extended Security Updates through Azure Arc, upgrading in place, and migrating to Azure SQL Managed Instance.

    12 min read
  20. SQL Server 2025 Upgrade Checklist: Pre-Checks, Breaking Changes, Rollback

    Upgrade SQL Server 2016, 2019 or 2022 to SQL Server 2025 safely: supported paths, OS checks, the OLE DB 19 encryption change for linked servers, full-text and replication fixes, and a rollback plan.

    13 min read
  21. SQL Server Always On Availability Groups on Azure VMs: Setup Guide

    Build a SQL Server Always On availability group on Azure VMs in multiple subnets: IP plan, Windows failover cluster, cloud witness quorum, Azure tuned thresholds, listener and failover testing.

    14 min read
  22. SQL Server Error 1205 Deadlock Victim: Capture, Read and Fix Deadlocks

    Capture deadlock graphs with Extended Events in SQL Server and Azure SQL Database, read the victim, process and resource lists, and stop error 1205 with indexing, access order, row versioning and retries.

    14 min read
  23. SQL Server Error 9002 Transaction Log Full: Find the Cause and Fix It

    Fix SQL Server error 9002 by reading log_reuse_wait_desc, then resolving missing log backups, open transactions, Always On replica lag or a full disk, and size the log so it doesn't fill again.

    13 min read
  24. SQL Server Query Store: Find Plan Regressions and Force a Good Plan

    Use Query Store in SQL Server and Azure SQL Database to find queries that got slower after a plan change, force the last good plan, check that forcing works, and automate it with automatic plan correction.

    13 min read
  25. Upgrade PostgreSQL to 18 with pg_upgrade: Step-by-Step Runbook

    A tested order of operations for upgrading self-managed PostgreSQL to 18 with pg_upgrade, plus the in-place major version upgrade for Azure Database for PostgreSQL flexible server.

    13 min read
  26. PostgreSQL High Availability: A Production Manual for Patroni, etcd v3, HAProxy and PgBouncer

    How to build a PostgreSQL HA cluster with automatic failover and synchronous replication using Patroni, an etcd DCS, HAProxy health-check routing and PgBouncer connection pooling.

    9 min read