-
Notifications
You must be signed in to change notification settings - Fork 488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize query on BorReceiptLogs #102
Comments
We are only getting that logs timeout related issue only when user doesn’t give startBlock and it starts fetching from 1st block, Right ? |
That's a nice idea. But the problem is that devs need to understand what is borReceiptLogs and it won't be there when |
Or maybe we can add a boolean query param like |
Another thought - can we treat this as a general pagination problem and have a max limit of records that can be queried in a single call. So in this case, let's say we make start and end blocks mandatory and if the difference between start and end is more than 1000 or 10000, we don't allow such calls and throw an error with details about the max no of blocks that can be queried at once. Again, not sure if there would be impact on the consumption from devs or any other restrictions it might place for the use cases we are supporting. |
This will force people using external RPC node service to setup their indexers such as thegraph early in their development cycle, even for a just small dapp. Then what is the need of using that external RPC node at all after one already gone through setting up indexer? Almost none, since the rpc node wouldn't provide any ability to do "scalable range queries". I found it perplexing that matic BOR node is eliminating the assumption that eth_getLogs should be scalable Please take this one seriously, it affects not only one team, I have validation that there are more teams affected by this. |
Something like this could work actually, since logs from "state-sync" might not be interesting to some teams. OR, even a completely separated rpc function eth_getLogsWithStateSyncs |
Hi guys, just thought I'd cross link this bsc issue here bnb-chain/bsc#113 seems like y'all are facing similar questions. While I think both of your threads together are very valuable, I'd like to point to this users post bnb-chain/bsc#113 (comment) specifically. Seems like a heavy lift, but if it was possible to implement the 10k log response limit with no blockrange limit it will make it so I dont have to re write my application into batched calls of a 1000 blocks per piece. Hope its food for thought. Cheers, |
Re-open if required. |
PR #90 introduced BorReceiptLogs, which gives logs from state-sync as well. But, that introduced a delay in response time for the log filter query.
The text was updated successfully, but these errors were encountered: