﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18854	Fix join promotion in disjunction cases	Anssi Kääriäinen	nobody	"The current join promotion logic in disjuction cases is confusing, and it produces often too many LEFT joins.

I'd like to clean it up with something like [https://github.com/akaariai/django/commits/disjuction_promotion this]. There are two commits, one doing the cleanup in sql/query.py, the other adds tests. 4/6 of the added tests fail on master."	Cleanup/optimization	closed	Database layer (models, ORM)	dev	Normal	fixed			Accepted	1	0	0	0	0	0
