Commit ecec362
committed
feat(storage): add sync count, db size introspection, and Backpressure error
- Add `StorageEngineSync::count_sync` to count entries without async
- Add `RedbStorage::db_size_bytes` for measuring encoded payload size
across all tables; used by benchmarks to compute compression ratios
- Cap scan pre-allocation at 1024 entries to avoid unbounded buffer
growth when callers pass a large open-ended limit
- Add `LiteError::Backpressure` variant for emit back-pressure signals1 parent 065a7e1 commit ecec362
3 files changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
115 | 138 | | |
116 | 139 | | |
117 | 140 | | |
| |||
375 | 398 | | |
376 | 399 | | |
377 | 400 | | |
378 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
379 | 404 | | |
380 | 405 | | |
381 | 406 | | |
| |||
530 | 555 | | |
531 | 556 | | |
532 | 557 | | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
533 | 562 | | |
534 | 563 | | |
535 | 564 | | |
| |||
0 commit comments