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 `profiles` ADD INDEX `profiles_idx_user_id` (`user_id`);
ALTER TABLE `users` ADD INDEX `users_idx_id` (`id`);
SELECT
`id` AS `id`,
`name` AS `name`,
`username` AS `username`,
`email` AS `email`,
`email_verified_at` AS `email_verified_at`,
`profiles`.`phone` AS `phone`
FROM
(SELECT
`users`.`id` AS `id`,
`users`.`name` AS `name`,
`users`.`username` AS `username`,
`users`.`email` AS `email`,
`users`.`email_verified_at` AS `email_verified_at`
FROM
`users`
ORDER BY
`users`.`id` ASC LIMIT 11) AS `users`
LEFT JOIN
`profiles`
ON `id` = `profiles`.`user_id` LIMIT 11