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
We are using babrahams:transaction library in our project. We have business case where we need to add timeout as part of transaction commit(tx.commit()). If transaction is taking more that x milliseconds to complete all queries to commit, then it should rollback all the changes.
Please let me know whether this can be achieved using babrahams:transaction library? If not, can this be achieved logically in meteor code?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi,
I think it times out and automatically rolls back if the transaction is idle (no new writes) for longer than 5 seconds. You can set this default timeout by changing the 5000 to, say, 2000:
tx.idleTimeout = 5000;
But I don't think there's a way to make the transaction just cut out and roll back everything after a certain amount of time has elasped.
Brent
We are using babrahams:transaction library in our project. We have business case where we need to add timeout as part of transaction commit(tx.commit()). If transaction is taking more that x milliseconds to complete all queries to commit, then it should rollback all the changes.
Please let me know whether this can be achieved using babrahams:transaction library? If not, can this be achieved logically in meteor code?
Thanks in advance.
The text was updated successfully, but these errors were encountered: