Re: Duplication of Query - reg

2019-12-27 Thread Raja Sekar Sambath
Hi, Thanks for your reply, I have included select_related in my view but no result. On Fri, 27 Dec 2019 at 13:16, Sencer Hamarat wrote: > Hi, > > That could be a behavior of a template tag or a "for" block in the > template. > You may consider to use ".select_related" and ".prefetch_related" in

Re: Duplication of Query - reg

2019-12-26 Thread Sencer Hamarat
Hi, That could be a behavior of a template tag or a "for" block in the template. You may consider to use ".select_related" and ".prefetch_related" in view. Saygılarımla, Sencer HAMARAT On Fri, Dec 27, 2019 at 4:59 AM Raja Sekar Sambath wrote: > Hi, > > I have a table of data with self relati

Duplication of Query - reg

2019-12-26 Thread Raja Sekar Sambath
Hi, I have a table of data with self relation , I am Querying all records and displaying them in tabular format in a template I find a strange behaviour that the query has been executed recursively for each records of table, any better / suggestion solution for this issue. [image: image.png]