Sunday, June 6, 2010

Aggregation of related tables

Hello all,

I am writing an application that often lists objects and some of their
attributes in tables.
I get the list in my view and then access attributes in template.
It means that the table rendering results in many simple sql queries
(first to get the list and then
one query for every row).
Is there a way how to this in a more effective way? I can get the data
with one sql query
but it would involve some "low level" python DB access and I am curious
if this is possible
in a more "djangoish" way.

Thank you,

--
Tomas Kouba

--
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