I do bulk updates on the database, particularly when importing data
from an external source. This seems to cause a caching issue.

I tracked down the issue to:
$ manage shell
>> from models import Book
>> bb = Book.objects.all()
>> for b in bb:
>>    b.title = "xx"
>>    b.save()
>> ^Z
$ manage shell
>> from models import Book
>> bb = Book.objects.all()
>> for b in bb:
>>    b.title = "yy"
>>    b.save()
>> print bb[0].title
xx
>> cc = Book.objects.all()
>> print cc[0].title
yy

Why is the first query set not displaying the book's new name? Why do
I have to create a new query set? This does sound somewhat
counterintuitive.

FYI, I'm using v0.96 and sqlite3.

JJ.


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