I was asked in an interview to enlighten the ways one can use to optimize the query Select * from TableA if it is taking a lot of time to execute. (TableA) can be any table with large amount of data. The interviewer didn’t leave me any option like to select few columns or to use “WHERE” clause rather he wanted me to give solution for the subject query.
I was asked in an interview to enlighten the ways one can use to
Share
It’s really hard to know what the interviewer was looking for.
They might be relatively inexperienced and expected answers like:
The kinds of things an experienced person might be looking for are:
There are a lot of underlying things that may be making that query slow or that may make that query a bad choice.