Okay, I think I'm getting the idea now. 🙂 I'm actually running the searches on some tables that have member data in them. Like, I have profileid, name, age, gender, whether the profile is pending or not, and there's also an interest field that members can sort others by, that sort of thing.
The age, interests, and pending field all rely on searching short numerical values. I'm thinking that the interest field should definately be indexed, since it's going to used quite a bit, and since it also relies on another table to match the interestid with the interest name.
It makes sense that fields that are to be joined to fields on another table should be indexed.
Hm, I guess another thing I'm wondering about is the name field. I've got it so that users can search for other users with "WHERE name LIKE '$name%'". At the moment I've got the field set as a varchar(50). So I'm guessing that I should probably index that one as well.
I'm still reading up on this all, ahha. There's just so much to learn and absorb. Thanks for your replies so far.