Re: About convenience of caching contenttypes in generic relations

2007-09-21 Thread msaelices
On 22 sep, 03:21, Michael Radziej <[EMAIL PROTECTED]> wrote: > On Fri, Sep 21, msaelices wrote: > > > You don't see well the code. > > Oh, you're right! > > I better stop triaging and go to bed now ;-) Good night. I do the same (It's 3:26AM) :-( > > To quote Malcolm: Sorry for the unconvenience

Re: About convenience of caching contenttypes in generic relations

2007-09-21 Thread Michael Radziej
On Fri, Sep 21, msaelices wrote: > > You don't see well the code. Oh, you're right! I better stop triaging and go to bed now ;-) To quote Malcolm: Sorry for the unconvenience ;-) Michael -- noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg - Tel +49-911-9352-0 - Fax +49-911-93

Re: About convenience of caching contenttypes in generic relations

2007-09-21 Thread msaelices
You don't see well the code. The code does caching of django_contenttype table like the other file. It reduces by caching this SQL sentence: obj1.related_object select * from django_content_types where id = 4 ---> a content type for one relationship select * from myapp_mytable where id = 27 --->

Re: About convenience of caching contenttypes in generic relations

2007-09-21 Thread Michael Radziej
On Fri, Sep 21, msaelices wrote: > > I have uploaded a patch for improve generic relations performance: > >http://code.djangoproject.com/ticket/5570 > > But mir closed my ticket because it think patch is not convenient. > > I think there are a lot of files with same type of caching. I don

About convenience of caching contenttypes in generic relations

2007-09-21 Thread msaelices
I have uploaded a patch for improve generic relations performance: http://code.djangoproject.com/ticket/5570 But mir closed my ticket because it think patch is not convenient. I think there are a lot of files with same type of caching. I don't use django cache framework. I use a simple dicti