X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=eg_staged_bib_overlay;h=a2d776cfa97d0b6ffd0e37993df1e49a71b031b0;hp=4df0cdeaba9c32ec28dbb4c286c47f5615833bf3;hb=97d3c06d4fe2a6050868121a55f14ff4d5298226;hpb=563d2622309fa9aace05f3ca12cf847d00341625 diff --git a/eg_staged_bib_overlay b/eg_staged_bib_overlay index 4df0cde..a2d776c 100755 --- a/eg_staged_bib_overlay +++ b/eg_staged_bib_overlay @@ -33,7 +33,7 @@ my $dbpw; my $dbhost; my $batch; my $cutoff; -my $wait = 0; +my $wait = 1; my $output; my $link_skipped; @@ -387,7 +387,7 @@ sub handle_load_bibs { FROM $schema.$batch WHERE to_import AND NOT imported - ORDER BY id + ORDER BY bib_id DESC LIMIT 1 ) }); @@ -404,7 +404,7 @@ sub handle_load_bibs { ) }); $dbh->commit; - sleep $wait if ($wait); + sleep $wait; } } @@ -594,6 +594,7 @@ sub handle_load_new_auths { ) }); $dbh->commit; + sleep $wait; } }