mysql - How to optimize full text searches? -


i know there lot of question on subject, needed more specific information. here goes:

  1. ideally should maximum length of characters upon full text search can performed using minimal resources (cpu, memory)?
  2. when should decide between using like %$str% , full-text search?
  3. is important have both versions like %$str% , full-text search implemented , use optimal 1 dynamically?

  1. as far know depends on number of words, not characters. fewer, faster mysql be. don't let in way.
  2. never use if can use full-text search. except maybe queries manually run once in while , don't want slow down inserts on table. know speed of select vs speed of insert tradeoff in indexes, right?
  3. always use ft (full-text) search in queries don't run manually. slow , becomes slower when number of rows increases. because mysql engine has every row answer query. , ft keeps index , knows look.

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -