1 |
1.10 ms |
SELECT COUNT(*) FROM (SELECT u.id, TRIM(CONCAT(u.name_first, ' ', u.name_last)) AS name, u.nickname, u.email, u.avatar, u.reg_date, u.role, u.status, u.photos_dir_num, u.location_ip, u.location_country, u.location_state, u.location_city, u.location_country_code, s.show_social_links_in_profile, (SELECT COUNT(c.id) FROM blog_post_comments c WHERE u.id = c.author_id) AS blog_comments_count FROM user_users u INNER JOIN user_settings s ON u.id = s.user_id ORDER BY id desc) tmp
SELECT COUNT(*) FROM (SELECT u.id, TRIM(CONCAT(u.name_first, ' ', u.name_last)) AS name, u.nickname, u.email, u.avatar, u.reg_date, u.role, u.status, u.photos_dir_num, u.location_ip, u.location_country, u.location_state, u.location_city, u.location_country_code, s.show_social_links_in_profile, (SELECT COUNT(c.id) FROM blog_post_comments c WHERE u.id = c.author_id) AS blog_comments_count FROM user_users u INNER JOIN user_settings s ON u.id = s.user_id ORDER BY id desc) tmp;
|
2 |
0.93 ms |
SELECT u.id, TRIM(CONCAT(u.name_first, ' ', u.name_last)) AS name, u.nickname, u.email, u.avatar, u.reg_date, u.role, u.status, u.photos_dir_num, u.location_ip, u.location_country, u.location_state, u.location_city, u.location_country_code, s.show_social_links_in_profile, (SELECT COUNT(c.id) FROM blog_post_comments c WHERE u.id = c.author_id) AS blog_comments_count FROM user_users u INNER JOIN user_settings s ON u.id = s.user_id ORDER BY id desc LIMIT 6 OFFSET 6
SELECT u.id, TRIM(CONCAT(u.name_first, ' ', u.name_last)) AS name, u.nickname, u.email, u.avatar, u.reg_date, u.role, u.status, u.photos_dir_num, u.location_ip, u.location_country, u.location_state, u.location_city, u.location_country_code, s.show_social_links_in_profile, (SELECT COUNT(c.id) FROM blog_post_comments c WHERE u.id = c.author_id) AS blog_comments_count FROM user_users u INNER JOIN user_settings s ON u.id = s.user_id ORDER BY id desc LIMIT 6 OFFSET 6;
|
3 |
0.42 ms |
SELECT user_id, network, identity, nickname FROM user_networks WHERE user_id IN(?, ?, ?, ?, ?, ?)
Parameters: [
8
7
6
5
4
3
]
SELECT user_id, network, identity, nickname FROM user_networks WHERE user_id IN(8, 7, 6, 5, 4, 3);
|
4 |
0.65 ms |
SELECT a.id, a.name, a.url FROM blog_authors a
SELECT a.id, a.name, a.url FROM blog_authors a;
|
5 |
0.56 ms |
SELECT a.id, a.name, a.url FROM blog_authors a
SELECT a.id, a.name, a.url FROM blog_authors a;
|
6 |
0.57 ms |
SELECT id, name FROM blog_categories
SELECT id, name FROM blog_categories;
|
7 |
0.59 ms |
SELECT COUNT(`id`) FROM `published_blog_posts_ids`
SELECT COUNT(`id`) FROM `published_blog_posts_ids`;
|
8 |
0.50 ms |
SELECT p.url, p.title, p.cover, p.date, c.id AS category_id, c.name AS category_name, a.name AS author_name, a.url AS author_url, (SELECT COUNT(m.id) FROM blog_post_comments m WHERE m.post_id = p.id AND m.approved = 1) AS comments_count FROM blog_posts p INNER JOIN blog_authors a ON p.author_id = a.id INNER JOIN blog_categories c ON p.category_id = c.id WHERE p.id IN(NULL)
SELECT p.url, p.title, p.cover, p.date, c.id AS category_id, c.name AS category_name, a.name AS author_name, a.url AS author_url, (SELECT COUNT(m.id) FROM blog_post_comments m WHERE m.post_id = p.id AND m.approved = 1) AS comments_count FROM blog_posts p INNER JOIN blog_authors a ON p.author_id = a.id INNER JOIN blog_categories c ON p.category_id = c.id WHERE p.id IN(NULL);
|
9 |
0.70 ms |
SELECT id, name FROM blog_tag_names ORDER BY RAND() ASC LIMIT 17
SELECT id, name FROM blog_tag_names ORDER BY RAND() ASC LIMIT 17;
|
10 |
0.52 ms |
SELECT COUNT(`id`) FROM `published_blog_posts_ids`
SELECT COUNT(`id`) FROM `published_blog_posts_ids`;
|
11 |
0.50 ms |
SELECT p.url, p.title, p.cover, p.date, c.id AS category_id, c.name AS category_name, a.name AS author_name, a.url AS author_url, (SELECT COUNT(m.id) FROM blog_post_comments m WHERE m.post_id = p.id AND m.approved = 1) AS comments_count FROM blog_posts p INNER JOIN blog_authors a ON p.author_id = a.id INNER JOIN blog_categories c ON p.category_id = c.id WHERE p.id IN(NULL)
SELECT p.url, p.title, p.cover, p.date, c.id AS category_id, c.name AS category_name, a.name AS author_name, a.url AS author_url, (SELECT COUNT(m.id) FROM blog_post_comments m WHERE m.post_id = p.id AND m.approved = 1) AS comments_count FROM blog_posts p INNER JOIN blog_authors a ON p.author_id = a.id INNER JOIN blog_categories c ON p.category_id = c.id WHERE p.id IN(NULL);
|