TAMULib / Vireo

Vireo is a turnkey Electronic Thesis and Dissertation (ETD) Management System.
http://vireoetd.org/vireo/
1 stars 0 forks source link

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

Closed kaladay closed 4 months ago

kaladay commented 4 months ago

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.