Closed morph-dev closed 4 months ago
The pruning strategy of IdIndexedV1Store (deleting ~5% of db) was taking too long on large databases (example: 40sec on 10GB db).
IdIndexedV1Store
After trying several approaches and measuring performance, I refactored the pruning logic:
content_size
pruning_threshold
I run this version on one of Kolby's machines and metrics look ok to me.
LegacyHistoryStore
What was wrong?
The pruning strategy of
IdIndexedV1Store
(deleting ~5% of db) was taking too long on large databases (example: 40sec on 10GB db).How was it fixed?
After trying several approaches and measuring performance, I refactored the pruning logic:
content_size
to save few sql queriespruning_threshold
from the configI run this version on one of Kolby's machines and metrics look ok to me.
For future PR-s:
IdIndexedV1Store
for history networkLegacyHistoryStore
To-Do