Wednesday, July 13, 2011

Handling Efficiency issues

Hi all for some reason i am doing something like this
for i in Message.objects.all():
i.read_at = datetime.now()
i.save()

now the number of Message instances are likely to increase by a lot
with time . My question is is it likely that this code piece will
become very slow over time. If yes how can handle this more
efficiently

--
A-M-I-T S|S

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate