Alan Brown napsal(a): > On Tue, 9 Jan 2007, Ondrej PLANKA wrote: > >> I searched, but I think, my indexes are OK, or not? >> >> mysql> show index from File; >> | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation >> | Cardinality | Sub_part | Packed | Null | Index_type | Comment | >> +-------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+ >> >> >> | File | 0 | PRIMARY | 1 | FileId | A >> | 53777200 | NULL | NULL | | BTREE | | >> | File | 1 | JobId | 1 | JobId | A >> | 35 | NULL | NULL | | BTREE | | >> | File | 1 | JobId_2 | 1 | JobId | A >> | 35 | NULL | NULL | | BTREE | | >> | File | 1 | JobId_2 | 2 | PathId | A >> | 4888836 | NULL | NULL | | BTREE | | >> | File | 1 | JobId_2 | 3 | FilenameId | A >> | 53777200 | NULL | NULL | | BTREE | | >> +-------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+ >> >> >> > > 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? > I forgot I had to do that, it does make a difference > > +-------+------------+---------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+ > > > | Table | Non_unique | Key_name | Seq_in_index | > Column_name | Collation | Cardinality | Sub_part | Packed | Null | > Index_type | Comment | > +-------+------------+---------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+ > > > | File | 0 | PRIMARY | 1 | > FileId | A | 108180988 | NULL | NULL | | > BTREE | | > | File | 1 | JobId | 1 | > JobId | A | 18 | NULL | NULL | | > BTREE | | > | File | 1 | JobId | 2 | > PathId | A | 15454426 | NULL | NULL | | > BTREE | | > | File | 1 | JobId | 3 | > FilenameId | A | 108180988 | NULL | NULL | | > BTREE | | > | File | 1 | file_jobid_idx | 1 | > JobId | A | 18 | NULL | NULL | | > BTREE | | > | File | 1 | file_pathid_idx | 1 | > PathId | A | 554774 | NULL | NULL | | > BTREE | | > | File | 1 | file_filenameid_idx | 1 | > FilenameId | A | 27045247 | NULL | NULL | | > BTREE | | > +-------+------------+---------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+ > > > 7 rows in set (1.41 sec) > > > >
------------------------------------------------------------------------- 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