YeSQL You extend SQL with Rich and Highly Performant User-Defined Functions in Relational Databases
1 minute read ∼ Filed in : A paper noteIntroduction
Gap
Python UDF is not using JIT compiler. And the funciton
Goal
This paper try to improve the performance by
- reducing data conversions, copies, and context switches between different execution environments, when UDF input and output is translated from and to SQL.
- overhead of running Cpython’ interpreter.
Techniques:
- seamless data exchange between the UDF and the DBMS.
- JIT-compiled UDFs.
- UDF parallelization
- activation patterns, and number of dichotomies.stateful UDFs, and UDF fusion
CFFI enable python to call C code,
s
easy implementation of complex algorithms and several performance enhancements, including tracing JIT compilation of Python UDFs, parallelism and fusion of UDFs, stateful UDFs seamless integration with a database engine