LP#1768022 Fielder max bundle count user/berick/lp1768022-flat-fielder-stream-bundle-count
authorBill Erickson <berickxx@gmail.com>
Thu, 31 May 2018 15:32:09 +0000 (11:32 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 31 May 2018 15:32:11 +0000 (11:32 -0400)
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 <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Fielder.pm

index 610a86b..c8352b6 100644 (file)
@@ -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"},