Open Cmdv opened 3 days ago
Any ideas on how the eviction of old data will work?
@kderme I'm making it an LRU so they'll just get pushed out if they haven't gotten used. Will be easier than trying to work out when a TxId in the cache should be deleted.
We should somehow handle rollbacks, since tx
table is deleted on rollbacks. I think we can follow a very simple approach, simply delete the whole TxCache when there is a rollback, as part of rollbackCache
.
Description
This fixes #1727
TODO:
Checklist
fourmolu
on version 0.10.1.0 (which can be run withscripts/fourmolize.sh
)Migrations
If there is a breaking change, especially a big one, please add a justification here. Please elaborate more what the migration achieves, what it cannot achieve or why a migration is not possible.