What is connection pooling, and how does it work?
Why opening database connections is expensive, how pools lend and reuse them, two-tier pooling on large systems, Django's pool options, and the settings that matter.
9 articles tagged #databases
Why opening database connections is expensive, how pools lend and reuse them, two-tier pooling on large systems, Django's pool options, and the settings that matter.
Load balancing, caching, queues, read replicas, connection pooling, autoscaling and load testing: how to build a platform that survives its busiest minute.
Scale up or scale out? The trade-offs in cost, limits and downtime, what stateless apps need, and why databases usually grow vertically first, with a worked cost example.
Session, transaction and statement pooling, what breaks in transaction mode, key pgbouncer.ini settings, PgBouncer vs Pgpool-II and managed proxies, and production tips.
What 'sorry, too many clients already' means, how to find the culprits in pg_stat_activity, quick relief during an incident, and why raising max_connections isn't the fix.
Why Redis is fast, how TTLs and eviction policies work, how to size memory, when persistence matters for a cache, and how Redis compares with Memcached.
Precompute leaderboards and reports inside PostgreSQL: create and index materialized views, refresh them concurrently, schedule refreshes, and know the alternatives.
B-trees in plain English, reading EXPLAIN ANALYZE, composite, partial and covering indexes, what indexes cost, and adding them to a live Postgres table safely.
How PostgreSQL streaming replication works, synchronous vs asynchronous commits, routing reads in Django, handling replication lag, and replicas for failover.
Upclass for institutes
Your courses, live classes and tests in your own branded app, with piracy protection on every lecture. Plans start at ₹1,999/month.