https://ixnfo.com/en/how-to-change-join_buffer_size-in-mysql.html
How to change join_buffer_size in MySQL