I have a fulltext index in table where users private messages are stored. I created a fultext index because users can search their private messages.
Table size now is 257 MB but index size 133 MB!
I don't know if it's a good idea to keep this fulltext index if it takes so much space.
Maybe I can just create a normal index on "userid" column and than run the search query like this:
$result=mysql_query("SELECT id FROM messages
WHERE userid='$id' and text LIKE '%$searchword%'") or die('Database error');
Each user has maximum 3000 messages and even if mailbox is 100% full the query will scan not more than 3000 rows.
What do you think about it? What is better - to keep fulltext index which eats space or to remove this index and scan rows without index?
Thanks.