Hiya!

Someone raised this question in the comments of the 4th tutorial and
it's been bugging me to no end.

Let's take the poll sample. We've got the vote() view going on.

choice.votes += 1
choice.save()

Suppose we've got thread1 and thread2 going on (high-load website):

choice.votes is originally 16

thread1.choice.votes += 1
thread2.choice.votes += 1
thread1.choice.save()
thread2.choice.save()

choice.votes _should_ be 18 now, but is it 18 or 17?

Someone in #django mentioned that it'll work correctly when using
PostgreSQL, but probably not when using MySQL.

Our production system and my development system both use MySQL right
now. PostgreSQL is an option, but I'd rather not deploy that right
now.

But, anyhow, isn't the point of using database-agnostic middleware
like this that it'll work the same no matter what database you end up
using?

Anyhow, I'm just shopping for a framework right now. Django seems very
very nice, but there's something about it that keeps nagging me.
That's one such source of nag for me.

I did some searching of the mailing list archive earlier, but I
couldn't find this question answered. Or maybe I'm just too sleepy.


Elver

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to