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

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -