X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fqt-console%2Fhelp%2Frestore.html;h=400e807187c5da9d10e624a5bf984beb35d768dc;hb=4bbf56fe1140f2dfa79e6a4a9f717e65375be412;hp=447d0e15d1ac306bdead6d58d4a45dfcf00e66bc;hpb=ce18ddd2d35be0891faf84f8b0c1a76ed544d2da;p=bacula%2Fbacula diff --git a/bacula/src/qt-console/help/restore.html b/bacula/src/qt-console/help/restore.html index 447d0e15d1..400e807187 100644 --- a/bacula/src/qt-console/help/restore.html +++ b/bacula/src/qt-console/help/restore.html @@ -126,5 +126,34 @@ to the server by the other interfaces. Restore. These indicate to the user the time it may take to complete any tasks that could take a long time period. +

Version Browser Performance

+ +

If you have used the version browser with a large database, you may have +noticed that the performance can begin to be quite slow. A way to improve the +response time of the database server is to add indexes that will assist a +couple of the specific queries that are made. + +

For postgresql add 2 indexes with the following commands in psql: +
CREATE INDEX file_filenameid_jobid ON file USING btree (filenameid, +jobid); +
CREATE INDEX file_pathid_idx ON file USING btree (pathid); + +

For mysql add 2 indexes with the following commands in mysql: +
CREATE INDEX file_filenameid_jobid ON File (FilenameId, JobId); +
CREATE INDEX file_pathid_idx ON File (PathId); + +

There is one way to make the first of those two indexes perform just a +little better. It is to create a partial index. First, at least one backup +must be in the database that has at least one directory. Then in psql or mysql +perform the command: +
SELECT FilenameId FROM Filename WHERE name=''; +
Use the results of this command and replace for XXX in the following command: +
CREATE INDEX file_filenameid_jobid2 ON File (JobId) WHERE FilenameId=XXX; +
This index will use less disk space and will perform better. Don't forget to +remove the index it replaces, file_filenameid_jobid. + +

If you have sqlite and would be willing to test out the creation of these +indexes to see if they work, please let me know the commands. +