Skip to main content

Data

Cache Stampede Protection
·599 words·3 mins· loading · loading
Databases Databases Data Performance
Request coalescing, early refresh, and jitter keep one expiry from becoming a dependency spike.
Reading EXPLAIN ANALYZE Without Guessing
·601 words·3 mins· loading · loading
Databases Databases Data Performance
Compare estimated and actual rows first, then find where time, loops, or memory multiply.
Choosing Between Redis and Memcached
·601 words·3 mins· loading · loading
Databases Databases Data Performance
Choose from data model, persistence, operations, clustering, and failure behavior rather than benchmark headlines.
PostGIS Nearest-Neighbor Queries
·596 words·3 mins· loading · loading
Databases Databases Data Performance
Use spatial indexes and distance operators that preserve indexability before calculating exact distance.
Kafka Delivery Semantics in Practice
·601 words·3 mins· loading · loading
Databases Databases Data Performance
Offsets and side effects must share a recoverable protocol to survive crashes between them.
Zero-Downtime Schema Migrations
·590 words·3 mins· loading · loading
Databases Databases Data Performance
Expand, migrate, verify, switch, and contract across independently deployed application versions.
The Lost Update and How to Prevent It
·598 words·3 mins· loading · loading
Databases Databases Data Performance
Atomic updates, locks, or optimistic versions must protect read-modify-write as one decision.
PostgreSQL Indexes From Query Shape
·595 words·3 mins· loading · loading
Databases Databases Data Performance
Design indexes from predicates, join keys, ordering, selectivity, and write cost together.
ETCD Transactions for Coordination
·600 words·3 mins· loading · loading
Databases Databases Data Performance
Compare-and-swap plus leases can encode ownership, but clients must handle revision and expiry races.
Kafka Partitioning and Consumer Parallelism
·601 words·3 mins· loading · loading
Databases Databases Data Performance
The key determines ordering and skew; partition count sets the ceiling for group parallelism.
Transaction Isolation Through Anomalies
·594 words·3 mins· loading · loading
Databases Databases Data Performance
Choose isolation by naming the anomaly that would violate a business invariant.
Connection Pools Are Capacity Limits
·598 words·3 mins· loading · loading
Databases Databases Data Performance
Pool size must reflect database concurrency, transaction duration, and queueing—not application goroutine count.
Redis Caching Without Stale Data Surprises
·599 words·3 mins· loading · loading
Databases Databases Data Performance
Define ownership, expiry, invalidation, stampede control, and degraded behavior before adding cache code.
Keyset Pagination in PostgreSQL
·600 words·3 mins· loading · loading
Databases Databases Data Performance
Seek from the last ordered key to keep page cost stable and results coherent.
ClickHouse Table Design for Event Analytics
·599 words·3 mins· loading · loading
Databases Databases Data Performance
Partition for lifecycle, order for filtering locality, and measure cardinality before choosing codecs.