ASA SQL User's Guide Monitoring and Improving Performance Top performance tips
Reducing expensive user-defined functions in queries where they have to be executed many times can improve performance.