query performance tuning

query performance tuning