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 `Bucket` ADD INDEX `bucket_idx_name` (`Name`);
SELECT
generatedAlias0.generatedAlias0
FROM
com.test.Bucket AS generatedAlias0
WHERE
EXISTS (
SELECT
generatedAlias1.generatedAlias1
FROM
com.test.Bucket AS generatedAlias1
WHERE
generatedAlias1.Name = :param0
)