Commit c466d71
committed
avail-pyrmts (shadow): thread
Same fix as `7ddb7104` for `/api/avail-geo`. Shadow-mode reader for
`/api/totals?kind=availability` was calling `fetchShardData(storage, k)`
without filter opts, so hyparquet loaded full `avail/agg/<tier>/<period>`
shards into memory. On real station-filtered queries (witnessed via
`wrangler tail` while loading a station-detail page) the shadow call
OOMs in `waitUntil` — invisible to the client (legacy path succeeds)
but defeats shadow-mode's parity-signal purpose.
Effective only once shards have multiple RGs sorted by `dt` (true for
`avail/agg/<tier>/` per Cascade-compactor convention; not yet for v2
shards — see `specs/avail-pyramid-v2.md` §7).binCol + range into fetchShardData
1 parent 7ddb710 commit c466d71
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
| |||
0 commit comments