Initially Executing a User-Defined Function

To ensure the safest environment possible, install and invoke UDFs from a read-only server node in a multiplex installation.

The SAP Sybase IQ server does not load the library containing the UDF code until the first time the UDF is invoked. The first execution of a UDF residing in a library that has not yet been loaded may be unusually slow. After the library is loaded, the subsequent invocation of the same UDF or another UDF contained in the same library have the expected performance.

In environments where after-hours maintenance operations require a shutdown and restart of the server, run some test queries after the server has been restarted. This ensures that the appropriate libraries are loaded in memory for optimal query performance during business hours.