Repository navigation
Commit 4ad1e1d
committed
perf(webapp): prune the live delivery hydration query to the visible days
getDeliveriesByFriendlyIds looked rows up by id only, so the live poll probed
every retained daily partition every few seconds per open dashboard. The ids are
time-encoded, so when they all decode we bound the query to the span of their
mint timestamps (which equal createdAt), pruning to the visible page's few days.
A legacy id in the set falls back to the unbounded lookup.1 parent e002afc commit 4ad1e1d
1 file changed
Lines changed: 24 additions & 8 deletions
File tree
- apps/webapp/app/services/webhookDeliveriesRepository
Lines changed: 24 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
306 | 304 | | |
307 | 305 | | |
308 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
309 | 312 | | |
310 | 313 | | |
311 | 314 | | |
312 | 315 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
| 316 | + | |
318 | 317 | | |
319 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
320 | 332 | | |
321 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
322 | 338 | | |
323 | 339 | | |
324 | 340 | | |
| |||
0 commit comments