use TEXT
also, consider putting the actual copy into a separate table
e.g.
Code:
CREATE TABLE cms_entries
( id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT
, pagename VARCHAR(255) NOT NULL
, title VARCHAR(255) NOT NULL
, descr VARCHAR(255) NOT NULL
, url VARCHAR(255) NOT NULL
, added DATETIME NOT NULL
, chged DATETIME NULL
) ENGINE=InnoDB
;
CREATE TABLE cms_contents
( id INTEGER NOT NULL PRIMARY KEY
, content TEXT NOT NULL
) ENGINE=MyISAM
there are two advantages:
when running queries against your entries only, like for a list consisting only of title and url, the rows are shorter so the queries are more efficient
also, having the one-to-one relationship with the actual text in a separate myisam table means that you can declare a fulltext index on it, while the main entries table remains innodb
Bookmarks