Back to glossary
Pattern

Database Partitioning

Also known as: Sharding · Table partitioning

Partitioning splits a logical table into physical pieces along a chosen key — date, tenant, currency, region. Queries that filter on the partition key only touch the relevant slice; writes spread across slices instead of contending on one. PostgreSQL native partitioning (pg_partman for management) is TantraDev's default move when a single table exceeds a few hundred million rows or query latency starts climbing with table size.

Where we use it

In production at TantraDev.

ARCHITECTURE AUDIT

Building a system where Database Partitioning is the load-bearing decision?

30 minutes on the phone, one page in your inbox — what to build, what to skip, what it will cost. You keep the audit even if we are not the right fit.