LTIMindtree interview question

How to make database queries faster?