Analysis of UDF overhead, when to use DETERMINISTIC vs. NOT DETERMINISTIC, and the performance impact of UDFs in WHERE clauses.