Closed plotchy closed 1 month ago
Hey so to note mostly all the main RPC providers bring back a response if range to large and then from there you can index the most optimal amount of logs each time
code: https://github.com/joshstevens19/rindexer/blob/master/core/src/indexer/fetch_logs.rs#L503 info: https://rindexer.xyz/docs/references/rpc-node-providers#rpc-node-providers
I was going to add a max_block_size but i didn't in the end, the RPC provider your using does do the above? scanning blocks by blocks is slower then doing what the above RPC providers do. I can for sure add this on the contract > details level so you can config max_block_size per contract or would you expect it on the network level where you config the rpc node?
I feel the best place here is to add it on the network level as it tends to be network RPC globally these limits
unfortunately this rpc provider is the only one available for the network and doesnt provide an optimal range. The RPC docs say that only 1000 events can be returned, and any over that then responds with an error.
So generally I've been indexing 20 blocks per request...😭 It's slow but it's consistent.
I feel the best place here is to add it on the network level as it tends to be network RPC globally these limits
yes i agree
ha ha makes sense!
i need to add this anyway for something else I'm doing for rindexer so il switch to do this tonight for us, i think its small thing as we have all the code anyway just on the Option need to pick it from the manifest yaml and expose a field to define it
awesome!
rindexerup - version 0.2.0 👍
this works perfectly. and dang is it fast! about 3x faster than my crappy python indexer. just switched over! ty
That’s what we like the hear! 🔥
The block range im concerned about gathering events for is ~600K wide.
the resulting rpc call is for
eth_getLogs
for the full range, which always will time out for my use case. Can we configure step size somehow?The example where the end block is only 100 blocks ahead works perfectly