[Koha-patches] [PATCH] ordering by biblioitemnumber for best performance

paul.poulain at biblibre.com paul.poulain at biblibre.com
Fri May 2 19:03:23 CEST 2008


From: Paul POULAIN <paul.poulain at biblibre.com>

diff --git a/misc/batchupdateISBNs.pl b/misc/batchupdateISBNs.pl
index a613b95..2752aab 100755
--- a/misc/batchupdateISBNs.pl
+++ b/misc/batchupdateISBNs.pl
@@ -63,7 +63,7 @@ my $cpt_isbn = 0;
 if(not $no_isbn){
 
     my $query_isbn = "
-        SELECT biblioitemnumber,isbn FROM biblioitems WHERE isbn IS NOT NULL
+        SELECT biblioitemnumber,isbn FROM biblioitems WHERE isbn IS NOT NULL ORDER BY biblioitemnumber
     ";
 
     my $update_isbn = "
@@ -94,7 +94,7 @@ if(not $no_isbn){
 if(not $no_marcxml){
     
     my $query_marcxml = "
-        SELECT biblioitemnumber,marcxml FROM biblioitems WHERE isbn IS NOT NULL
+        SELECT biblioitemnumber,marcxml FROM biblioitems WHERE isbn IS NOT NULL ORDER BY biblioitemnumber
     ";
     
     
-- 
1.5.3.2




More information about the Koha-patches mailing list