General SQL tuning tips for Notification Server and Deployment Server