Concordium / concordium-scan

CCDScan
Apache License 2.0
3 stars 14 forks source link

Contract snapshot #196

Closed ghost closed 8 months ago

ghost commented 8 months ago

Purpose

All contract interactions is stored as events and currently no aggregation is stored. Due to this every time balance or current linked module needs to be found, all events needs to be loaded into memory.

Due to some other memory issues, on mainnet the CCD Scan query pod has now got both a CPU- and memory limit. Because of this we are suddently not able to see contract overview page, see issue https://github.com/Concordium/concordium-scan/issues/194.

This is because all events for all contracts needs to be loaded just to deliver this one view.

This PR adds a snapshot of contract state.

Changes

Checklist