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
Thanks to @framirez07 it became apparent that adding (or removing) more than 4 associated records in the add<Model> input argument for a to_many association will lead to a Operation Timeout Error.
This is because every associated record starts a transaction in the model-layer "infix" function inside a for await loop in the resolver, which causes the database (or sequelize) to do a Timeout.
To fix this bug remove the transactions from the model-layer infix functions in sql-models and sql-adapter by changing the add_ and remove_ functions as sketched below
Thanks to @framirez07 it became apparent that adding (or removing) more than 4 associated records in the
add<Model>
input argument for ato_many
association will lead to aOperation Timeout
Error.This is because every associated record starts a transaction in the model-layer "infix" function inside a
for await
loop in the resolver, which causes the database (or sequelize) to do a Timeout.To fix this bug remove the transactions from the model-layer infix functions in sql-models and sql-adapter by changing the
add_
andremove_
functions as sketched belowNEW "infix" function
update respective unit tests
The text was updated successfully, but these errors were encountered: