Performance Tuning For Querying