Optimizations of av-store (#2223)

* Store all chunks and in a single transaction

* Adds chunks LRU to store

* Add pruning records metrics

* Use honest cache instead of LRU

* Remove unnecessary optional cache

* Fix review nits that are fixable
This commit is contained in:
Fedor Sakharov
2021-01-08 00:00:30 +03:00
committed by GitHub
parent 0d614374e9
commit b97f52a4c8
6 changed files with 122 additions and 77 deletions
@@ -1036,7 +1036,6 @@ where
AvailabilityStoreMessage::StoreChunk {
candidate_hash,
relay_parent,
validator_index,
chunk: erasure_chunk,
tx,
}