From 2fb125be8ae168cef03c947cedcc9c7db9ba4e28 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 9 Apr 2013 13:45:24 -0400 Subject: [PATCH] TPAC bucket item retrieval operates in streaming mode TPAC bucket item retreive fleshes bib records with large blobs of MARC data. When a bucket contains a few thousand items, the size of the data passed around in atomic retreival mode will exceed the typical jabber max stanza size and result in a failure. Retrieve the records in streaming mode instead. Signed-off-by: Bill Erickson Signed-off-by: Ben Shum --- Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm index 87b53ec430..f98645bc03 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm @@ -1881,7 +1881,8 @@ sub bib_container_items_via_search { flesh => 1, flesh_fields => {"cbrebi" => \@flesh_fields} } - ]); + ], {substream => 1}); + unless ($items) { $logger->warn( "bib_container_items_via_search() couldn't get bucket items: " . -- 2.43.2