Consider using tools like
Releem for automated optimization, which continuously evaluates your server's performance and makes adjustments to settings, including transaction_prealloc_size, on its own. Releem simplifies the process of applying these changes, minimizing manual effort while aiming to improve resource management, decrease latency, and boost query efficiency.