]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl add index on temporary table to speed up mysql part during restore
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 15 May 2009 19:39:36 +0000 (19:39 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 15 May 2009 19:39:36 +0000 (19:39 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8833 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/cgi/bresto.pl

index 6984057439bfe0a2a0c9d44eb1e8e66fd3cc675c..863b915cabee45f5934a1aaf419bdefae7ca9e6c 100755 (executable)
@@ -873,6 +873,7 @@ SELECT max(JobId) as JobId, PathId, FilenameId, FileIndex
  GROUP BY PathId, FilenameId
  HAVING FileIndex > 0
 )");
+       $bvfs->dbh_do("CREATE INDEX btemp2_idx ON btemp2 (JobId, PathId, FilenameId)");
        $bvfs->dbh_do("CREATE TABLE b2$$ AS (
 SELECT btemp.JobId, btemp.FileIndex, btemp.FilenameId, btemp.PathId
   FROM btemp, btemp2