From 454060c4846246fc203458e19b52cf43bc54efeb Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 31 May 2018 11:32:09 -0400 Subject: [PATCH] LP#1768022 Fielder max bundle count Ensure that all calls to Fielder's open-ils.fielder.flattened_search API start returning data within a reasonable amount of time by applying a max_bundle_count of 5. A value of 5 hopes to strike a balance between a prompt initial response and being too chatty on the network. Signed-off-by: Bill Erickson --- Open-ILS/src/perlmods/lib/OpenILS/Application/Fielder.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Fielder.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Fielder.pm index 610a86b8c6..c8352b6753 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Fielder.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Fielder.pm @@ -291,6 +291,11 @@ __PACKAGE__->register_method( api_name => 'open-ils.fielder.flattened_search', stream => 1, argc => 5, + # Fielder is often used for large data streams, sometimes with + # individual responses being fairly small and aggressively bundled + # by OpenSRF. Apply a max_bundle_count as a stop-gap to ensure + # all API calls start returning data in a reasonable amount of time. + max_bundle_count=> 5, signature => { params => [ {name => "auth", type => "string", desc => "auth token"}, -- 2.11.0