mysql - How to optimize full text searches? -
i know there lot of question on subject, needed more specific information. here goes:
- ideally should maximum length of characters upon full text search can performed using minimal resources (cpu, memory)?
- when should decide between using
like %$str%
, full-text search? - is important have both versions
like %$str%
, full-text search implemented , use optimal 1 dynamically?
- as far know depends on number of words, not characters. fewer, faster mysql be. don't let in way.
- 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?
- 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
Post a Comment