]> git.evergreen-ils.org Git - Evergreen.git/commit
Keep standard INNER joins above possible OUTERs
authorMike Rylander <mrylander@gmail.com>
Thu, 12 Sep 2013 17:26:21 +0000 (13:26 -0400)
committerBen Shum <bshum@biblio.org>
Sat, 15 Feb 2014 00:38:46 +0000 (19:38 -0500)
commitd4ac339171df250bd1e537b9195fd28fa6f346ed
tree12db2286f47173aacda9e8c50a43162d2e1d3448
parentdb00aaa8859bbb384e37b9305cf83f495f479c4c
Keep standard INNER joins above possible OUTERs

We always join metabib.record_attr, and we always use an INNER join
to the core table, so keep that join first.  Likewise with the join
to biblio.record_entry.  Dynamic joins may be OUTER, though, and while
join reordering in Postgres is smart, let's not give it the chance to
fail.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm