PaulDeason
Programmer
I want to use multiple column indexing to improve my SELECT queries. I have 5 columns that can be searched on, however, anywhere between one and five of the columns can be searched on depending on the user.
Therefore if the user searches on e.g. column 1 and 3, a normal multiple column indexing will not work.
Does anyone know the best solution to do this? Should I just index each column individually, or try and create every possible index combination? Any advice would be greatly appreciated.
Therefore if the user searches on e.g. column 1 and 3, a normal multiple column indexing will not work.
Does anyone know the best solution to do this? Should I just index each column individually, or try and create every possible index combination? Any advice would be greatly appreciated.