We replaced the read-then-insert operations with atomic INSERT ON CONFLICT upserts. The Result: 1. The entire write path became strictly idempotent. 2. Race conditions dropped to absolute zero. 3. We ...
I see the issue clearly from your screenshot.