Stream records to ML for Vandelay queue export
authorBill Erickson <berick@esilibrary.com>
Wed, 10 Aug 2011 14:23:32 +0000 (10:23 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 10 Aug 2011 14:27:13 +0000 (10:27 -0400)
Since queued records, with their marcxml blobs, are fairly large, avoid
fetching them atomically when possible.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm

index 4a3d345..2b563a8 100644 (file)
@@ -521,7 +521,7 @@ sub retrieve_queued_records {
         'search_vandelay_queued_bib_record' : 'search_vandelay_queued_authority_record';
 
     if ($self->api_name =~ /export/) {
-        my $rec_list = $e->$search({id => [map { $_->{id} } @$record_ids]});
+        my $rec_list = $e->$search({id => [map { $_->{id} } @$record_ids]}, {substream => 1});
         if ($self->api_name =~ /print/) {
 
             $e->rollback;