I have table with +800k records with simple schema (just id
[int] and full text index on note
[text]). Every time I insert new record I use php script to strip all strings shorter than 4 chars and all stop words. Than the processed string is inserted in DB. When I search for some common keyword it takes +4s to get result and whole DB is stuck during the search. What am I doing wrong?
//edited
schema:
id
int(11) NOT NULL,text
mediumtext COLLATE utf8_general_ci NOT NULL, PRIMARY KEY (id
), FULLTEXT KEYtext
(text
)
query:
SELECTtable_name
.id
FROMtable_name
WHERE MATCH (text
) AGAINST ("+keyword" IN BOOLEAN MODE)