I'm not sure what you're referring to here - integrity, uniqueness, and locking are handled at the individual query level - transactions just cause locks to be held (if needed) until commit or rollback. Can you give a concrete example of an exception being raised at commit time?
On Tue, Mar 5, 2013 at 6:03 AM, Chris Wilson <[email protected]> wrote: > Hi Lennart, > > > On Tue, 5 Mar 2013, Lennart Regebro wrote: > >> I do agree that 99.9% of the sites committing on the end of the request is >> the right thing to do, and do think that this should be the default, >> although I realize that debate is already lost. > > > In a perfect academic world where there are never any errors, that approach > is probably academically correct. In my opinion it makes correct error > handling extremely difficult, because database errors (unique violations, > concurrent modifications, etc) are thrown far away from the code that knows > how to deal with them (the code that caused them in the first place). > > Cheers, Chris. > -- > Aptivate | http://www.aptivate.org | Phone: +44 1223 967 838 > Future Business, Cam City FC, Milton Rd, Cambridge, CB4 1UY, UK > > Aptivate is a not-for-profit company registered in England and Wales > with company number 04980791. > > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-developers?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
