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:
ALTER TABLE `restaurant` ADD INDEX `restaurant_idx_id` (`id`);
ALTER TABLE `stack` ADD INDEX `stack_idx_value_rest_id` (`value`,`rest_id`);
SELECT
DISTINCT restaurant.name,
restaurant.place
FROM
stack,
restaurant
WHERE
restaurant.id = stack.rest_id
AND stack.value = 'chineese'
AND stack.value = 'dinner'
AND stack.value = 'parking'