Repository navigation
fix: stop /admin sync status from timing out - #1162
Conversation
The unpriced-txs count (prices: { none: {} } -> NOT IN subquery over the
whole Transaction table) ran inside the request and outlasted the reverse
proxy's timeout, so the client got an HTML error page and failed parsing it
as JSON.
- Count unpriced txs in the background with a NOT EXISTS anti-join, share
one in-flight query, cache it for 5 min, and return the last finished
count (null while the first one runs).
- Replace the four Address groupBy scans with a single aggregate query.
- Client: report non-JSON responses as an HTTP status instead of a JSON
parse error, and show "counting…" until the first count is available.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019G564hvGkZJY3UCe17WV6u
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The unpriced-txs count (prices: { none: {} } -> NOT IN subquery over the whole Transaction table) ran inside the request and outlasted the reverse proxy's timeout, so the client got an HTML error page and failed parsing it as JSON.
Summary by CodeRabbit