如果要存储变长的字符串或字段可能会包含大量的 NULLs,请使用 VARCHAR 型字段代替 CHAR 。一个 CHAR(n) 字段总是使用 n bytes 来存储数据,即使这个字符串很短或是一个 NULL 值。较小的表更加适合缓冲池同时能够减少磁盘 I/O 。http://www.innodb.com/ibman.html#InnoDB_tuning6. Use the VARCHAR column type instead of CHAR if you are storing variable-length strings or the column may contain many NULLs. A CHAR(n) column always takes n bytes to store data, even if the string is shorter, or its value is NULL. Smaller tables fit better in the buffer pool and reduce disk i/o.
比如在50万行的查询时,用php与mysql连接作网络应用.如果同时并发数一多,就会很头痛了.不知道这一点有没有办法解决