invirt rarely uses database transactions
Bug #388149 reported by
Evan Broder
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Invirt Project |
New
|
Undecided
|
Unassigned |
Bug Description
We should rework our database code to commit transactions instead of using session.flush. Then we should set autoflush=True, autocommit=False in our session initialization.
To post a comment you must log in.
One example of a benefit from fixing this bug: invirt-images could hold off on committing the transaction to add a new CD until the image had actually been downloaded and copied over, keeping images from showing up in users' dropdowns while the download was still running.
I'm sure you all can come up with many others.