Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relocate "generate" CLI code outside of transaction and improve error handling. #65

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

kaladay
Copy link

@kaladay kaladay commented Apr 23, 2024

The relocation allows for faster transactional operation. With the loop outside of the transaction, then the transaction can be committed for each pass. This then allows for reduced memory requirements for large transactions (such as when generate a huge amount of submissions).

The exception handling is improved by catching the exceptions at the CLI level such that CLI related exceptions can be reported without crashing the entire server. Now, if a CLI fails due to some error, then the server does not exit.

… handling.

The relocation allows for faster transactional operation.
With the loop outside of the transaction, then the transaction can be committed for each pass.
This then allows for reduced memory requirements for large transactions (such as when generate a huge amount of submissions).

The exception handling is improved by catching the exceptions at the CLI level such that exceptions can be reported without crashing the entire server.
Now, if a CLI fails due to some error, then the server does not exit.
@kaladay kaladay requested a review from jsavell April 23, 2024 13:28
@kaladay kaladay merged commit b64453a into sprint1-staging Apr 23, 2024
0 of 2 checks passed
@jsavell jsavell mentioned this pull request Apr 30, 2024
@kaladay kaladay deleted the finer_transactions_in_cli branch May 13, 2024 20:37
@kaladay kaladay restored the finer_transactions_in_cli branch May 13, 2024 20:37
@kaladay kaladay deleted the finer_transactions_in_cli branch May 31, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants