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

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

index 58a4aed..160b295 100644 (file)
@@ -729,7 +729,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