pendulum-chain / pendulum-squids

The subsquid squids we use for Pendulum/Amplitude/Foucoco.
GNU General Public License v3.0
0 stars 0 forks source link

Only process price info updates for the latest blocks #34

Closed ebma closed 10 months ago

ebma commented 12 months ago

At the moment, the syncing of our squids is significantly slowed down by processing price update events. Since we don't care about historic prices but on every block, we just overwrite the latest price, we can speed this up by only processing these events if the current block is the 'head' of our chain.

ebma commented 12 months ago

@pendulum-chain/product this ticket is just a nice-to-have feature but yields significant improvements to the syncing speed of our indexers, so I recommend we work on this very soon.

prayagd commented 11 months ago

Hey team! Please add your planning poker estimate with Zenhub @b-yap @bogdanS98 @ebma @gianfra-t @TorstenStueber