iotaledger / inx-chronicle

IOTA permanode implemented using the IOTA Node Extension (INX) interface.
Apache License 2.0
14 stars 13 forks source link

added cache to rich list and token distribution endpoints #1286

Closed shufps closed 1 year ago

shufps commented 1 year ago

Token Distribution and Rich List endpoints use heavy database scans. Without caching the heavy queries are running all the time and a lot of them in parallel because they also take some time to complete. This results in consuming the entire CPU constantly if in a network with many Outputs (like Testnet - or Stardust Mainnet that has the double amount).

Also fixes this issue:

https://github.com/iotaledger/inx-chronicle/issues/1225

Chronicles with this changes are running for a couple of weeks now on Testnet, Shimmer and now on Stardust Mainnet.