This PR changes the build_query_for_affiliate_data to no longer require date bounds by making use of the trade_view. This view allows us to fetch all trades and their valuations in seconds - thus eliminating the need for daily updates in favour of all time query without wait time.
We rename a few files (for simplicity) to adapt to this change as removing the faily eliminates the need for overly verbose file names.
POC query can be found here -- whose most recent execution time was 10 seconds.
Note that this change will also require updating the pods which expect certain scripts to be available which have been deleted.
This PR changes the
build_query_for_affiliate_data
to no longer require date bounds by making use of thetrade_view
. This view allows us to fetch all trades and their valuations in seconds - thus eliminating the need for daily updates in favour of all time query without wait time.We rename a few files (for simplicity) to adapt to this change as removing the faily eliminates the need for overly verbose file names.
POC query can be found here -- whose most recent execution time was 10 seconds.
Note that this change will also require updating the pods which expect certain scripts to be available which have been deleted.