myisam - MySQL Full-Text search vs Like %% -
what key differences , use case both of them? thanks!
full-text search kind of search based on special sort of index (full-text, obviously). power of o(lgn) while searching using it.
while like %% always causes table fullscan can terrible slow (when have 100k , more rows).
personally use like %% when small table (0-1000 rows) , i'm sure never grow (and, important, when like %% fits task requirements).
note: fulltext indexes available myisam se. if use innodb - need @ 3rd party indexing software sphinx
Comments
Post a Comment