January 24, 2011 – 12:09 pm
1. Instead of VARCHAR, BLOB or TEXT, Use CHAR type when possible. if values of a column have constant length: MD5-hash (32 symbols), ICAO or IATA airport code (4 and 3 symbols), BIC bank code (3 symbols), etc. Data in CHAR type columns can be found faster rather than in variable length data types columns.
2. Just because of you have too many columns, don’t split a table . In accessing a row, the biggest performance hit is the disk seek needed to find the first byte of the row.
Read the rest of this entry »
Posted in MySQL, Others | No Comments »