invirt rarely uses database transactions

Bug #388149 reported by Evan Broder
6
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.

Tags: database
Revision history for this message
Evan Broder (broder) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.