Commit 8b1c45a
committed
Optimize tx processing RAM
- Don't load blob fields that are not used
- Process a smaller batch of transactions every time
For example, we detected a Safe in production with 782KB used by `logs` and other fields for every row:
- Before: 5000 × 782KB = 3.9GB
- After: 500 × 782KB = 391MB
Not even counting on the optimization not loading blob fields.1 parent 2ccb6c8 commit 8b1c45a
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
| 574 | + | |
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1325 | 1325 | | |
1326 | 1326 | | |
1327 | 1327 | | |
1328 | | - | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
1329 | 1336 | | |
1330 | 1337 | | |
1331 | 1338 | | |
| |||
0 commit comments