-werners-
Esteemed Contributor III

looping over records is a performance killer.  To be avoided at all costs.

beware the for-loop (databricks.com)