List:General Discussion« Previous MessageNext Message »
From:Chuck Gadd Date:December 4 2003 11:13pm
Subject:Re: Large data set load and access
View as plain text  
beacker@stripped wrote:

> mysql> create table gb_locus (
>     ->         gbl_id          int primary key,
>     ->         gbl_fileID      int,
>     ->         gbl_locus       varchar(20),
>     ->         gbl_size        int,
>     ->         gbl_date        date,
>     ->         gbl_phylum      char(3),
>     ->         gbl_foffset     int
>     -> );

At a recent MySql class, I learned that using all fixed
length fields instead of variable length fields can improve
speed.  This is because MySql can skip thru records faster
if the records are all a fixed length.

So, if you were willing to give up a little storage space,
make the gbl_locus field a Char(20) instead of a varchar(20)
and see if it speeds things up.  I found noticable speed
increase in my selects doing this.



Thread
Large data set load and accessbeacker4 Dec
  • Re: Large data set load and accessChuck Gadd5 Dec
Re: Large data set load and accessbeacker5 Dec
  • Re: Large data set load and accessChuck Gadd5 Dec