You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When iterating over event logs, it is very slow to collect them together, because it tries to iterate over the entire blockchain's history, when the contract only deployed at some block within that history:
Event log start block should be bound to whenever the contract was first deployed, to the point it last existed (SELFDESTRUCT). If there is a change in contract code within using a CREATE2 proxy, those might make changes to end block as well
How batching works can be extremely inefficient. Some blocks have no events, and some have a lot.
Web3py provides a direct API for filtering events, some research should be done to determine if that might improve this section of code
Further work should continue to be done on the query layer, which might vastly speed up the process of obtaining logs via data pipeline plugins
The text was updated successfully, but these errors were encountered:
antazoey
changed the title
Event logs don't work very well
Event logs is unnecessarily inefficient in multiple respects
Nov 3, 2022
antazoey
changed the title
Event logs is unnecessarily inefficient in multiple respects
Contract log fetching / querying is unnecessarily inefficient in multiple respects
Nov 3, 2022
When iterating over event logs, it is very slow to collect them together, because it tries to iterate over the entire blockchain's history, when the contract only deployed at some block within that history:
ape/src/ape/api/providers.py
Lines 917 to 934 in 4f53967
SELFDESTRUCT
). If there is a change in contract code within using aCREATE2
proxy, those might make changes to end block as wellThe text was updated successfully, but these errors were encountered: