The JusDB Database Engineering Blog

Deep dives on PostgreSQL, MySQL, MongoDB and more — performance tuning, high availability, migrations and production war stories from our DBAs.

105 canonical articlesBrowse the complete archive

Popular Searches

PostgreSQL Articles

← Clear filter

Showing 12 of 105 articles

UUIDs as Primary Keys: How We Destroyed Database Performance

UUIDs as primary keys can destroy database performance. Learn why 50M rows went from 0.5ms to 2.3ms inserts, and how to fix it with hybrid approaches.

PostgreSQL10 minJun 6, 2023
Read

Query Plan Regression: Detecting and Fixing Bad PostgreSQL Plans

Detect query plan regressions in PostgreSQL using auto_explain, pg_hint_plan, and plan baseline management

PostgreSQL12 minMay 30, 2023
Read

pg_upgrade: Major PostgreSQL Version Upgrades with Minimal Downtime

Use pg_upgrade to migrate between PostgreSQL major versions — upgrade strategies, pre-checks, and rollback plans

PostgreSQL11 minMay 10, 2023
Read

PostgreSQL Row Level Security (RLS): Multi-Tenant Access Control in Practice

A production guide to PostgreSQL Row Level Security — policy creation, USING vs WITH CHECK clauses, performance implications with indexes, and multi-tenant SaaS patterns with real schema examples.

PostgreSQL11 minMay 8, 2023
Read

Mastering AWS RDS Max Connections for MySQL & PostgreSQL

Master AWS RDS connection limits for MySQL and PostgreSQL. Learn max_connections calculation, connection pooling strategies, and optimization techniques.

PostgreSQL15 minApr 11, 2023
Read

PostgreSQL Index Bloat: Detection and Remediation

Identify bloated indexes in PostgreSQL using pgstattuple, REINDEX CONCURRENTLY, and automated monitoring

PostgreSQL11 minApr 11, 2023
Read

Debezium and Change Data Capture: Stream MySQL and PostgreSQL to Kafka

Debezium reads MySQL binary logs and PostgreSQL WAL to stream every row-level change as a Kafka event in near real-time — replacing nightly batch ETL with sub-second data propagation.

PostgreSQL11 minApr 3, 2023
Read

Security Invoker Views in PostgreSQL 15: Fixing a Long-Standing RLS Bypass

PostgreSQL views historically executed with the owner's privileges, bypassing row-level security policies. PostgreSQL 15 fixed this with security_invoker views — here's why it matters and how to use it in multi-tenant schemas.

PostgreSQL8 minMar 29, 2023
Read

Citus: Distributed PostgreSQL for Multi-Tenant and Analytics Workloads

A production guide to Citus — distributed PostgreSQL for horizontal sharding. Hypertable setup, distribution column selection, colocation for local joins, reference tables, and Citus vs native PostgreSQL partitioning.

PostgreSQL12 minMar 22, 2023
Read

PostgreSQL Table Partitioning with pg_partman: Complete Guide

pg_partman automates PostgreSQL partition lifecycle. This guide covers create_parent(), retention policies, partition pruning, and migrating existing tables without downtime.

PostgreSQL10 minMar 21, 2023
Read

PostgreSQL Logical Replication to Kafka: End-to-End Setup

Stream PostgreSQL changes to Kafka using pgoutput and Debezium — setup, monitoring, and lag management

PostgreSQL12 minMar 21, 2023
Read

How JusDB Scaled PostgreSQL + TimescaleDB for a Nationwide Smart-Meter IoT Platform: A Case Study

Learn how JusDB optimized a TimescaleDB cluster ingesting billions of IoT readings monthly, achieving 10× faster writes and 65% storage reduction.

PostgreSQL22 minMar 14, 2023
Read
Newsletter

Get the latest database insights and expert tips delivered to your inbox.

Stay Connected

Subscribe to our RSS feed for instant updates.

RSS Feed