Alan Brown napsal(a): > On Tue, 9 Jan 2007, Ondrej PLANKA wrote: > >>> It sounds silly, but add individual indexes for JobId, PathId and >>> FilnameId as well as the 3-way one. >>> >> Ok, do you have some tip, how can I add individual indexes? Because I >> think, my indexes are OK or not? > > ALTER TABLE File ADD INDEX [name] {column} ; > > so... > > ALTER TABLE File ADD INDEX file_jobid_idx JobId ; > ALTER TABLE File ADD INDEX file_pathid_idx PathId ; > ALTER TABLE File ADD INDEX file_filenameid_idx FilenameId ; > I really done this individual indexes, but building directory tree for Jobs are still very slowly..... It is not possible :( Now my indexes of table File are >>>
+-------+------------+---------------------+--------------+-------------+-----------+-------------+ | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | +-------+------------+---------------------+--------------+-------------+-----------+-------------+ | File | 0 | PRIMARY | 1 | FileId | A | 13726696 | | File | 1 | JobId | 1 | JobId | A | 18 | | File | 1 | JobId_2 | 1 | JobId | A | 18 | | File | 1 | JobId_2 | 2 | PathId | A | 13726696 | | File | 1 | JobId_2 | 3 | FilenameId | A | 13726696 | | File | 1 | file_jobid_idx | 1 | JobId | A | 18 | | File | 1 | file_pathid_idx | 1 | PathId | A | 807452 | | File | 1 | file_filenameid_idx | 1 | FilenameId | A | 4575565 | +-------+------------+---------------------+--------------+-------------+-----------+-------------+ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users