I have a mysql table with 155+ columns.
I am running a select query with some case
conditions and some Where
conditions, The query is giving correct result but the only thing is speed. The query is taking around 50-60sec in execution.
I am using almost 25 columns in my where and case condition.
is there any why I can Optimize the execution time?
I have created index for 6 columns out of 25 columns.
is it good practice to create index for all 25 columns?
Please Suggest Thank You!!!