How to store and index a typical TEXT field in MySQL? -
how store , index typical text field in mysql. in case text field have max length of 500 characters, understand beyond 255 chars varchar behave text field, need data indexed well. having clauses count type of string appearances in field. store text , use fulltext on or store varchar(500) , index it?
native full text indexing on mysql requires engine myisam. beyond that, i'd recommend using varchar(500) rather text because:
- text allow more 500 characters
- searching against varchar faster text, indexed or otherwise
Comments
Post a Comment