There is a naive attempt to force immediate streaming of results in Vandelay
for certain processes, but it both only helps a little, and breaks under the
new OpenSRF bundling/chunking logic. So, we'll drop it where it's not
directly configurable, and test for the appropriate features where we can.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
method => "process_spool",
api_level => 1,
argc => 3,
- max_chunk_size => 0,
+ #max_chunk_size => 0,
+ max_bundle_count => 1,
record_type => 'bib'
);
__PACKAGE__->register_method(
method => "process_spool",
api_level => 1,
argc => 3,
- max_chunk_size => 0,
+ #max_chunk_size => 0,
+ max_bundle_count => 1,
record_type => 'auth'
);
api_level => 1,
argc => 3,
stream => 1,
- max_chunk_size => 0,
+ #max_chunk_size => 0,
+ max_bundle_count => 1,
record_type => 'bib'
);
__PACKAGE__->register_method(
api_level => 1,
argc => 3,
stream => 1,
- max_chunk_size => 0,
+ #max_chunk_size => 0,
+ max_bundle_count => 1,
record_type => 'auth'
);
api_level => 1,
argc => 2,
stream => 1,
- max_chunk_size => 0,
+ #max_chunk_size => 0,
+ max_bundle_count => 1,
record_type => 'bib',
signature => {
desc => q/
api_level => 1,
argc => 2,
stream => 1,
- max_chunk_size => 0,
+ #max_chunk_size => 0,
+ max_bundle_count => 1,
record_type => 'auth'
);
report_all => $$args{report_all}
};
- $conn->max_chunk_count(1) if $$args{report_all};
+ $conn->max_chunk_count(1) if (!$conn->can('max_bundle_size') && $conn->can('max_chunk_size') && $$args{report_all});
my $auto_overlay_exact = $$args{auto_overlay_exact};
my $auto_overlay_1match = $$args{auto_overlay_1match};