In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
SELECT
tablename.id,
SUBSTRING_INDEX(SUBSTRING_INDEX(tablename.name,
',',
numbers.n),
',',
-1) name
FROM
numbers
INNER JOIN
tablename
ON tablename.char_length_name - tablename.char_length_replace_name >= numbers.n - 1
ORDER BY
tablename.id,
n