From: Eric Bollengier Date: Tue, 6 Oct 2009 13:25:46 +0000 (+0200) Subject: update doc about indexes X-Git-Tag: Release-3.0.3~2^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=130e12e8732e208ebb2ce5378c5d9cba03c95bd5;p=bacula%2Fdocs update doc about indexes --- diff --git a/docs/manuals/en/catalog/catmaintenance.tex b/docs/manuals/en/catalog/catmaintenance.tex index ee0be08c..da243b0c 100644 --- a/docs/manuals/en/catalog/catmaintenance.tex +++ b/docs/manuals/en/catalog/catmaintenance.tex @@ -369,10 +369,10 @@ Several users have reported finding that their database did not have all the indexes in the default configuration. In addition, you may find that because of your own usage patterns, you need additional indexes. -The most important indexes for performance are the three indexes on the +The most important indexes for performance are the two indexes on the {\bf File} table. The first index is on {\bf FileId} and is automatically made because it is the unique key used to access the table. The other -two are the JobId index and the (Filename, PathId) index. If these Indexes +one is the (JobId, PathId, Filename) index. If these Indexes are not present, your performance may suffer a lot. \subsection{PostgreSQL Indexes} @@ -393,7 +393,7 @@ are created, you can create the two additional indexes using: \begin{verbatim} psql bacula CREATE INDEX file_jobid_idx on file (jobid); -CREATE INDEX file_fp_idx on file (filenameid, pathid); +CREATE INDEX file_fp_idx on file (jobid, pathid, filenameid); \end{verbatim} \normalsize @@ -466,7 +466,7 @@ create them with the following commands: \begin{verbatim} sqlite /bacula.db CREATE INDEX file_jobid_idx on File (JobId); -CREATE INDEX file_jfp_idx on File (JobId, FilenameId, PathId); +CREATE INDEX file_jfp_idx on File (JobId, PathId, FilenameId); \end{verbatim} \normalsize diff --git a/docs/techlogs/speed-test-results.ods b/docs/techlogs/speed-test-results.ods index 9551e83e..ac08f20c 100644 Binary files a/docs/techlogs/speed-test-results.ods and b/docs/techlogs/speed-test-results.ods differ