[Investigation] Possible fanout in int_stripe__account_daily
when using connected accounts
#80
Labels
int_stripe__account_daily
when using connected accounts
#80
What to investigate
This was discovered from an investigation from error
query exceeded resource limits
inint_stripe__account_daily
.Upon review, this join does not join on some sort of
account_id
orconnected_account_id
. For typical cases where only one account is in use, this is no issue, however if a user is using connected accounts, this would cause a fanout since the same balance_transaction would be repeated for every account. Also, this fanout could be what is causing resource issues.Because of internal data limitations, there is uncertainty on how to correctly address this. Ideally we want to review data from a user with connected accounts. (If that's you and would like to help us, please let us know in this thread!)
Possible Solution
For model
int_stripe__account_daily
, in my initial investigation I thought to update the CTEdaily_account_balance_transactions
with a filter like:However the issue is still that we don't have appropriate data to test if this is accurate. Just posting here, so it isn't lost.
The text was updated successfully, but these errors were encountered: