sorry karen. I have tried both. First I put in teh forma_parte_de foreing key field but it has no discernible effect on performance. I even execute it via python console and you can see clearly that it takes long time to response.
Then I tried to put the raw parameter in the many to many fields but I observe no effect . Maybe, the more of 100000 entries of Plantilla_metodo_embebido are the responsible of the long time ... Miguel Sent from Madrid, Spain On Wed, Apr 1, 2009 at 7:16 PM, Karen Tracey <kmtra...@gmail.com> wrote: > On Wed, Apr 1, 2009 at 1:03 PM, Miguel <migue...@gmail.com> wrote: > >> umm, raw_id_admin takes no effect. I think I have found the problem. As >> you said it may be in the model: >> >> Pattern_method model has this entry definition: >> >> metodos_embebidos = >> models.ManyToManyField('Plantilla_metodo_embebido',blank=True,null=True) >> >> and Plantilla_metodo_embebido has more than 100 000 entries. >> >> Could be this the reason to take so much time? I try to use the raw_id but >> no time is saved > > > In the previous note you were considering putting raw_id_admin on the > forma_parte_de ForeignKey field, that defined a relation to > 'Plantilla_bloque'. It isn't clear from what you have written here if you > tried only that and it has no discernible effect on performance, or if you > also tried specifying raw_id_admin=True on this ManyToManyField? > > Karen > > > > --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---