Support for QuerySet.union(), intersection(), and difference() is added in Django 1.11.
https://github.com/django/django/commit/84c1826ded17b2d74f66717fb745fc36e37949fd On Monday, March 13, 2017 at 11:54:15 AM UTC-4, guettli wrote: > > We have performance issues on postgres because some SQL statements have up > to six LEFT OUTER joins. > > > Union and intersection would be easier to read for me (human being) and > maybe better to optimize for the postgres query planer. > > It seems that other people have this issue, too: > https://code.djangoproject.com/ticket/27260 > > The above ticket was closed with a comment to ask for help on the support > channels. That's why I wrote here. > > Have other developers seen performance issues because the SQL had a lot of > LEFT OUTER joins? > > Is there a work-around? > > Regards, > Thomas Güttelr > -- 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/b3eace2e-687b-42de-85a5-af987895330c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.