Deferred evaluation
Track the relevance of upstream issue 2101: regional /api/nodes requests can occupy the SQLite connection pool with expensive history scans. This is an assessment and coordination issue, not a claim that our production server has experienced the reported outage.
Status checked 2026-10-04: upstream issue 2101 is open; its proposed PR 2102 is closed without merging. Our #176 is open and already contains an adapted implementation candidate. Do not start another competing port.
What it does / potential benefit
The proposed cache reuses regional node membership across count and page requests instead of repeatedly scanning the observation history. It could reduce query work and pool contention on large histories and repeated regional browsing. Query cancellation/deadlines and the remaining cold-cache work need evaluation separately; caching is not proof that every pool-starvation case is solved.
Existing work in our fork
Risks / questions for later
- Are the proposed stale-data windows acceptable for Nodes and Live?
- What happens with concurrent cold requests for many different region sets, cache eviction, retention and observer-region changes?
- Does cancellation release database resources promptly? Is a bounded query deadline or concurrency limit needed in addition to caching?
- Preserve result membership, pagination/count consistency, legacy data and the server's read-only database contract.
- The upstream incident and PR-author test results are not measurements of our current staging/production deployment.
Evaluation checklist
No merge, production query experiment, configuration change or deployment is authorized by this issue alone.
Deferred evaluation
Track the relevance of upstream issue 2101: regional
/api/nodesrequests can occupy the SQLite connection pool with expensive history scans. This is an assessment and coordination issue, not a claim that our production server has experienced the reported outage.Status checked 2026-10-04: upstream issue 2101 is open; its proposed PR 2102 is closed without merging. Our #176 is open and already contains an adapted implementation candidate. Do not start another competing port.
What it does / potential benefit
The proposed cache reuses regional node membership across count and page requests instead of repeatedly scanning the observation history. It could reduce query work and pool contention on large histories and repeated regional browsing. Query cancellation/deadlines and the remaining cold-cache work need evaluation separately; caching is not proof that every pool-starvation case is solved.
Existing work in our fork
decoded_json.pubKeyfallback whilefrom_pubkeybackfill is incomplete and fixes an upstream cache-replacement problem at the entry limit.from_pubkey; assess the overlap before merging either.Risks / questions for later
Evaluation checklist
from_pubkeybackfill.No merge, production query experiment, configuration change or deployment is authorized by this issue alone.