Standard Search
About 17 results
https://rednafi.com/system/wait-for-lsn/ · 12 Jun 2026
PostgreSQL 19's new WAIT FOR LSN command lets a replica block until it has replayed your write. The read-after-write problem it solves, the workarounds it replaces, and what the timeout, status, and mode options are actually for.
https://johnbeales.com/micro/2026-06-09t174853-0400/ · 9 Jun 2026 · 🦋 Bluesky
I'm migrating analytics to a new database structure for 4RoadService, it looks like this will take a few days. This should enable faster, better, and more accurate reporting for our customers.
https://johnbeales.com/micro/2026-05-26t200821-0400/ · 27 May 2026
I am now a member of the "Claude code deleted something that it shouldn't have from my database" club! Good thing it was a development database.
https://rednafi.com/go/repo-txn-uow/ · 21 Mar 2026
Decoupling business logic from storage in Go, adding transaction support without leaking SQL details, and coordinating atomic writes across multiple repositories using a unit of work.
https://rednafi.com/shards/2026/03/transactions-with-repository-pattern/ · 20 Mar 2026
Adding transaction support to a repository interface without leaking storage details.
https://rednafi.com/shards/2026/03/repository-layer-over-sqlc/ · 16 Mar 2026
Decoupling business logic from storage with a small interface in Go.
https://ledger.leaflet.pub/3mgvlokalck27 · 12 Mar 2026
If you've just created new schemas and have multiple user roles, make sure to execute these commands.
https://rednafi.com/misc/hierarchical-rate-limiting/ · 12 Jan 2025
Build multi-level rate limiting with Redis sorted sets and Lua. Enforce global and category-specific limits with ZREMRANGEBYSCORE and ZCARD commands.
https://mikebifulco.com/posts/seed-your-supabase-database · 23 Jul 2024
Learn how to seed your Supabase database with this simple pattern.
https://rednafi.com/python/sort-by-a-custom-sequence-in-django/ · 9 May 2023
Sort Django querysets by custom attribute sequences using Case and When expressions for database-level ordering with SQL CASE statements.