added some timing logs
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 20 Mar 2008 13:46:47 +0000 (13:46 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 20 Mar 2008 13:46:47 +0000 (13:46 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9102 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm

index 0566527..1e1ec03 100644 (file)
@@ -794,7 +794,9 @@ sub staged_search {
             # retrieve the window of results from the database
             $logger->debug("staged search: fetching results from the database");
             $search_hash->{skip_check} = $page * $PAGE_SIZE;
+            my $start = time;
             $results = $U->storagereq($method, %$search_hash);
+            $logger->info("staged search: DB call took ".(time - $start)." seconds");
             $summary = shift(@$results);
 
             # Create backwards-compatible result structures