D
deko
I've heard it said that *any* column field that appears on the right side of
a WHERE clause (anywhere in your database) should be indexed.
But this would mean nearly every column field in my table would have an
index! seems like overkill to me.
Is there some other criteria to use as a guideline? Is it really that
dangerous to *not* index a field that occurs on the right side of a where
clause? Is it better to avoid indexing text fields (especially long ones)
and rather index long integer fields only? How many indexes are too many?
Thanks in advance for your thoughts on this!
a WHERE clause (anywhere in your database) should be indexed.
But this would mean nearly every column field in my table would have an
index! seems like overkill to me.
Is there some other criteria to use as a guideline? Is it really that
dangerous to *not* index a field that occurs on the right side of a where
clause? Is it better to avoid indexing text fields (especially long ones)
and rather index long integer fields only? How many indexes are too many?
Thanks in advance for your thoughts on this!