Hi again all. having taken advice on normalisation etc which took most of my summer, I'm now down to the final thing - indexing.
So far I have put a normal index on the name and price columns of my main table, and the parent_id (foreign key) columns of my reference tables (though I just read on another thread whislt searching for help that this doesn't help as the table is small already?)
But I have about 15-20 fields they can search for, and currently they are included in the search if they have been filled in with AND colname LIKE %input%.
However I've read previously that if you start a text search with % it means a full table scan which is bad if you get a big db, thuogh I doubt mine ever will be. This seems stupid because if you take it off, it won't find the bar in foobarfoo which isn't much help.
So - use fulltext you say. What - on all 15 or so fields? This seems ridiculous to me. I need someone to set me straight, and fast, I want to launch
_________________________________
Leozack
So far I have put a normal index on the name and price columns of my main table, and the parent_id (foreign key) columns of my reference tables (though I just read on another thread whislt searching for help that this doesn't help as the table is small already?)
But I have about 15-20 fields they can search for, and currently they are included in the search if they have been filled in with AND colname LIKE %input%.
However I've read previously that if you start a text search with % it means a full table scan which is bad if you get a big db, thuogh I doubt mine ever will be. This seems stupid because if you take it off, it won't find the bar in foobarfoo which isn't much help.
So - use fulltext you say. What - on all 15 or so fields? This seems ridiculous to me. I need someone to set me straight, and fast, I want to launch
_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);