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
question.*,
subject.title AS subject_title,
region.title AS region_title,
topic.title AS topic_title
FROM
question
LEFT JOIN
subject
ON (
question.subject_id = subject.id
)
LEFT JOIN
region
ON (
question.region_id = region.id
)
LEFT JOIN
topic
ON (
question.topic_id = topic.id
)
WHERE
(
(
question.subject_id = '4'
)
)
ORDER BY
rand1 DESC LIMIT 20