MariaDB stored procedures and why they should be improved
summary
Stored procedures are presented as reusable, in-database libraries but the implementation is slow and feature-poor: a simple loop 1..1,000,000 takes about five seconds and historically runs several times slower than MySQL; session-scoped PREPARE causes recursion bugs that execute immediate avoids; there is no native debugger; missing features requested include optional and variadic arguments, overloading, server-side caching/deterministic hints, true table functions, arrays and polymorphic types, and pluggable external languages (Python/Perl/Java).
AI-written summary · about
