I'm running my production system on Ubuntu 8.04, I installed MySQL,
Mysqldb using apt-get command. I downloaded Django 1.0 release and
installed. I also created my database tables using scripts to specify
them to use InnoDB engine.

When I added the django.middleware.transaction.TransactionMiddleware
to MIDDLEWARE_CLASSES, I still got the chance to receive user
complaints about inconsistent data like they paid the money but didn't
get the virtual goods.

Then I removed the TransactionMiddleware, add
@transaction.commit_on_success to all my write functions in models.py,
in each such write function, I load the data from database, then
modify and save it. I think this should be the right way to use
transactions. But actually I still got user complaints. But this
method seems to have lower chance of getting user complaints since the
scope of transaction is getting smaller.

Do I miss any configuration here? Thanks for help.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to