Sql performance tuning

shape