I've been writing a search script, and I noticed that it's pretty slow since it has to go through all sorts of data before spitting back results.
So... I started searching on here and now I've been trying to learn about indexing because I think that's what I need to do. But of course, I've got questions. What fields are you supposed to index? The ones that are in your where clause? When should you index? I also found out that too much indexing = bad because it can slow up inserting/updating data and whatnot.
Anyway, I'd really appreciate it if someone could point me in the right direction. Thanks.