1.38 ms (46.15%)
|
10 |
SELECT t0.id AS id_1, t0.title AS title_2, t0.slug AS slug_3, t0.summary AS summary_4, t0.content AS content_5, t0.published_at AS published_at_6, t0.status AS status_7, t0.featured_image AS featured_image_8, t0.scheduled_at AS scheduled_at_9, t0.view_count AS view_count_10, t0.is_featured AS is_featured_11, t0.series_position AS series_position_12, t0.author_id AS author_id_13, t0.category_id AS category_id_14, t0.series_id AS series_id_15 FROM post t0 WHERE t0.author_id = ?
SELECT t0.id AS id_1, t0.title AS title_2, t0.slug AS slug_3, t0.summary AS summary_4, t0.content AS content_5, t0.published_at AS published_at_6, t0.status AS status_7, t0.featured_image AS featured_image_8, t0.scheduled_at AS scheduled_at_9, t0.view_count AS view_count_10, t0.is_featured AS is_featured_11, t0.series_position AS series_position_12, t0.author_id AS author_id_13, t0.category_id AS category_id_14, t0.series_id AS series_id_15 FROM post t0 WHERE t0.author_id = 9;
|
0.62 ms (20.59%)
|
1 |
SELECT DISTINCT u0_.id AS id_0, (SELECT COUNT(p1_.id) AS sclr_2 FROM post p1_ WHERE p1_.author_id = u0_.id) AS sclr_1, u0_.id AS id_3, u0_.full_name AS full_name_4 FROM user u0_ LEFT JOIN post p2_ ON u0_.id = p2_.author_id ORDER BY sclr_1 ASC, u0_.id ASC, u0_.full_name ASC LIMIT 20
SELECT DISTINCT u0_.id AS id_0, (SELECT COUNT(p1_.id) AS sclr_2 FROM post p1_ WHERE p1_.author_id = u0_.id) AS sclr_1, u0_.id AS id_3, u0_.full_name AS full_name_4 FROM user u0_ LEFT JOIN post p2_ ON u0_.id = p2_.author_id ORDER BY sclr_1 ASC, u0_.id ASC, u0_.full_name ASC LIMIT 20;
|
0.30 ms (10.16%)
|
1 |
SELECT u0_.id AS id_0, u0_.full_name AS full_name_1, u0_.username AS username_2, u0_.email AS email_3, u0_.password AS password_4, u0_.roles AS roles_5, u0_.bio AS bio_6, u0_.website AS website_7, u0_.twitter_handle AS twitter_handle_8, u0_.is_verified AS is_verified_9, u0_.last_login_at AS last_login_at_10, (SELECT COUNT(p1_.id) AS sclr_12 FROM post p1_ WHERE p1_.author_id = u0_.id) AS sclr_11 FROM user u0_ LEFT JOIN post p2_ ON u0_.id = p2_.author_id WHERE u0_.id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ORDER BY sclr_11 ASC, u0_.id ASC, u0_.full_name ASC
Parameters: [
9
10
1
7
4
8
5
6
2
3
]
SELECT u0_.id AS id_0, u0_.full_name AS full_name_1, u0_.username AS username_2, u0_.email AS email_3, u0_.password AS password_4, u0_.roles AS roles_5, u0_.bio AS bio_6, u0_.website AS website_7, u0_.twitter_handle AS twitter_handle_8, u0_.is_verified AS is_verified_9, u0_.last_login_at AS last_login_at_10, (SELECT COUNT(p1_.id) AS sclr_12 FROM post p1_ WHERE p1_.author_id = u0_.id) AS sclr_11 FROM user u0_ LEFT JOIN post p2_ ON u0_.id = p2_.author_id WHERE u0_.id IN (9, 10, 1, 7, 4, 8, 5, 6, 2, 3) ORDER BY sclr_11 ASC, u0_.id ASC, u0_.full_name ASC;
|