From: gmc Date: Thu, 16 Sep 2010 18:19:43 +0000 (+0000) Subject: remove internal limit with queries on facets X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0db2d6de8002c363deb55eec8c25f7e635abeab2;p=evergreen%2Fpines.git remove internal limit with queries on facets This allows non-selective facets such a material type facet to bring in correct results - the tradeoff is that queries that involve facets will run slower. Signed-off-by: Galen Charlton git-svn-id: svn://svn.open-ils.org/ILS/trunk@17744 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm index 4717380a11..ba596fbff6 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm @@ -659,8 +659,7 @@ sub flatten { $from .= ")"; - my $core_limit = $self->QueryParser->core_limit || 25000; - $from .= "\n\t\tLIMIT $core_limit\n\t) AS $talias ON (m.source = $talias.source)"; + $from .= "\n\t\t) AS $talias ON (m.source = $talias.source)"; $where .= 'TRUE';