remove internal limit with queries on facets
authorgmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Sep 2010 18:19:43 +0000 (18:19 +0000)
committergmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Sep 2010 18:19:43 +0000 (18:19 +0000)
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 <gmc@esilibrary.com>

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17744 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm

index 4717380..ba596fb 100644 (file)
@@ -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';