[open-ils-commits] [GIT] Evergreen ILS branch rel_2_4 updated. ab44fcc4f3f23495f0c07fbadff353c7ff8b9b66

Evergreen Git git at git.evergreen-ils.org
Mon Sep 16 18:13:03 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_4 has been updated
       via  ab44fcc4f3f23495f0c07fbadff353c7ff8b9b66 (commit)
      from  fc23b4ec5c6846b0b31a25c0f708d9409d22bcb0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ab44fcc4f3f23495f0c07fbadff353c7ff8b9b66
Author: Mike Rylander <mrylander at gmail.com>
Date:   Wed Aug 28 15:05:36 2013 -0400

    Stream facet data
    
    For certain shapes of facet datasets, the .atomic version of the
    json_query call can produce an XMPP message large enough to cause
    ejabberd to fall over unceremoniously.  Switch to a streaming
    CStoreEditor-based call instead to avoid this.
    
    Ideally, this would use message bundling (aka, chunking) as well,
    but the C parts of OpenSRF don't seem to support that yet.
    
    Signed-off-by: Mike Rylander <mrylander at gmail.com>
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
index 2068128..c88e04b 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
@@ -1598,7 +1598,7 @@ sub cache_facets {
     $query->{where}->{'+cmf'}->{field_class} = {'not in' => $ignore}
         if ref($ignore) and @$ignore > 0;
 
-    my $facets = $U->cstorereq("open-ils.cstore.json_query.atomic", $query);
+    my $facets = OpenILS::Utils::CStoreEditor->new->json_query($query, {substream => 1});
 
     for my $facet (@$facets) {
         next unless ($facet->{value});

-----------------------------------------------------------------------

Summary of changes:
 .../lib/OpenILS/Application/Search/Biblio.pm       |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list