No, it doesn't depend on server. Like i said - this is django problem.
On Jun 28, 1:37 am, l5x <[EMAIL PROTECTED]> wrote: > On Jun 27, 11:32 pm, grassoalvaro <[EMAIL PROTECTED]> wrote: > > > > > Here some code: > > --------------------------------------------------------------------- > > class TestField(models.Model): > > name = models.TextField() > > text = models.ManyToManyField(TextOption) > > class Meta: > > db_table = 'test' > > > test = TestField.objects.get() > > a = time.time() > > for i in range(0, 10000): > > t = getattr(test, "text") > > print "text: %f"%(time.time()-a) > > a = time.time() > > for i in range(0, 10000): > > t = getattr(test, "name") > > print "name: %f"%(time.time()-a) > > > text: 1.149759 > > name: 0.017819 > > --------------------------------------------------------------------- > > > Can someone explain me, why when i'm doing gettatr(test, "text") > > (ManyToMany) i have so long delay? That is django (not database) > > problem but i really don't know why. Anyone? > > Doesn't it depend on server ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---