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
The following is downloading the reconstructed state from GBQ, which is very resource intensive. GBQ has to process all state changes to reconstruct the state at every block and the downloaded dataset is much larger than it needed be, since most of the time weights and fees remains constant. Most pools are finalized and those parameters can't change at all.
I suggest this be modified so as to only download the state changes (basically the events subquery in view_pools_fees.sql and view_pools_weights.sql) and the state be reconstructed as part of the cadCAD simulation. This would be analogous to the current approach for swaps, joins, exits.
The text was updated successfully, but these errors were encountered:
markusbkoch
changed the title
Fetch weights/fee state changes from GBQ, not the reconstructed state
Fetch weights/fee _state changes_ from GBQ, not the reconstructed state
Mar 7, 2021
The following is downloading the reconstructed state from GBQ, which is very resource intensive. GBQ has to process all state changes to reconstruct the state at every block and the downloaded dataset is much larger than it needed be, since most of the time weights and fees remains constant. Most pools are finalized and those parameters can't change at all.
BalancerPools_Model/data/pulldata.py
Lines 228 to 231 in 9489bb0
I suggest this be modified so as to only download the state changes (basically the
events
subquery inview_pools_fees.sql
andview_pools_weights.sql
) and the state be reconstructed as part of the cadCAD simulation. This would be analogous to the current approach for swaps, joins, exits.The text was updated successfully, but these errors were encountered: