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 core system contains a complex set of tables to calculate pnls for each collateral type in each pool. There are likely optimizations can be made in these tables to simplify the calculation and enable more efficient materialization. The complex queries result in long query times and large join in order to "forward fill" data.
Although this was originally designed to calculate incrementally, some data quality issues arose so it was reverted to a table materialization. It should be possible to use incremental materialization here to speed up the dbt build.
Tasks:
Review and optimize hourly pnl tables in the core system: fct_pool_pnl_hourly, fct_pool_rewards_hourly, fct_pool_issuance
Optimize query times and reenable incremental table materialization if possible
The text was updated successfully, but these errors were encountered:
The core system contains a complex set of tables to calculate pnls for each collateral type in each pool. There are likely optimizations can be made in these tables to simplify the calculation and enable more efficient materialization. The complex queries result in long query times and large join in order to "forward fill" data.
Although this was originally designed to calculate incrementally, some data quality issues arose so it was reverted to a
table
materialization. It should be possible to useincremental
materialization here to speed up the dbt build.Tasks:
fct_pool_pnl_hourly
,fct_pool_rewards_hourly
,fct_pool_issuance
incremental
table materialization if possibleThe text was updated successfully, but these errors were encountered: