Hi Mark,

I suppose you opened #26045 <https://code.djangoproject.com/ticket/26045> 
about the same issue.

Are you using PostgreSQL? If it's the case the issue I suppose the issue is 
fixed 
in Django 1.9 
<https://github.com/django/django/commit/dc27f3ee0c3eb9bb17d6cb764788eeaf73a371d7>
.

Simon

Le mercredi 6 janvier 2016 08:36:36 UTC-5, Mark a écrit :
>
> I've run query manually removing all fields from GROUP BY that are not 
> related to aggregation and query runs fast. But how to do the same in 
> Django? How to remove unrelated fields to the aggregation from GROUP BY 
> clause?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/85cb606d-6fe0-4b75-bbfa-33f016661e69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to