]> git.sur5r.net Git - bacula/bacula/commitdiff
Improve speed of VolumeToCatalog verify jobs by adding
authorDan Langille <dan@langille.org>
Mon, 20 Sep 2004 12:44:40 +0000 (12:44 +0000)
committerDan Langille <dan@langille.org>
Mon, 20 Sep 2004 12:44:40 +0000 (12:44 +0000)
an index on file(pathid);

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1599 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/make_postgresql_tables.in

index f145ae6ed9c94dae13b5e04300e0ff64607a2060..c8f9a15db48044b949529fb4b8cc31be13b5e0c4 100644 (file)
@@ -327,6 +327,11 @@ create table unsavedfiles
 --    add foreign key  (filenameid)
 --      references filename (filenameid) on update restrict on delete restrict;
 
+-- See http://bugs.bacula.org/bug_view_advanced_page.php?bug_id=0000106
+-- Improve speed of VolumeToCatalog
+
+create index file_pathid on file(pathid);
+
 END-OF-DATA
 then
    echo "Creation of Bacula PostgreSQL tables succeeded."