1 |
1.94 ms |
SELECT t0.id AS id_1, t0.title AS title_2, t0.cover AS cover_3, t0.text_ai AS text_ai_4, t0.text AS text_5, t0.url AS url_6, t0.published AS published_7, t0.moderated AS moderated_8, t0.priority AS priority_9, t0.thematic_images AS thematic_images_10, t0.short_info_for_table AS short_info_for_table_11, t0.date AS date_12, t0.author_id AS author_id_13, t0.editor_id AS editor_id_14, t0.category_id AS category_id_15 FROM blog_posts t0 WHERE t0.url = ? LIMIT 1
Parameters: [
"energy-efficiency-types-of-renewable-energy-their-comparison-and-main-advantages"
]
SELECT t0.id AS id_1, t0.title AS title_2, t0.cover AS cover_3, t0.text_ai AS text_ai_4, t0.text AS text_5, t0.url AS url_6, t0.published AS published_7, t0.moderated AS moderated_8, t0.priority AS priority_9, t0.thematic_images AS thematic_images_10, t0.short_info_for_table AS short_info_for_table_11, t0.date AS date_12, t0.author_id AS author_id_13, t0.editor_id AS editor_id_14, t0.category_id AS category_id_15 FROM blog_posts t0 WHERE t0.url = 'energy-efficiency-types-of-renewable-energy-their-comparison-and-main-advantages' LIMIT 1;
|
2 |
0.49 ms |
SELECT COUNT(id) FROM blog_post_likes WHERE post_id = ?
SELECT COUNT(id) FROM blog_post_likes WHERE post_id = 1;
|
3 |
0.40 ms |
SELECT COUNT(id) FROM blog_post_dislikes WHERE post_id = ?
SELECT COUNT(id) FROM blog_post_dislikes WHERE post_id = 1;
|
4 |
0.83 ms |
SELECT c.id, c.text, DATE_FORMAT(c.date, '%M %e, %Y %h:%i:%s') AS date, (
SELECT COUNT(cl.id)
FROM blog_post_comments_likes cl
WHERE cl.user_id = c.author_id AND cl.comment_id = c.id
) AS likes_cnt, (
SELECT COUNT(cd.id)
FROM blog_post_comments_dislikes cd
WHERE cd.user_id = c.author_id AND cd.comment_id = c.id
) AS dislikes_cnt, TRIM(CONCAT(u.name_first, ' ', u.name_last)) AS name, u.nickname, u.avatar, u.photos_dir_num FROM blog_post_comments c INNER JOIN user_users u ON c.author_id = u.id WHERE (c.post_id = ?) AND (c.approved = 1) AND (c.reply_to IS NULL)
SELECT c.id, c.text, DATE_FORMAT(c.date, '%M %e, %Y %h:%i:%s') AS date, (
SELECT COUNT(cl.id)
FROM blog_post_comments_likes cl
WHERE cl.user_id = c.author_id AND cl.comment_id = c.id
) AS likes_cnt, (
SELECT COUNT(cd.id)
FROM blog_post_comments_dislikes cd
WHERE cd.user_id = c.author_id AND cd.comment_id = c.id
) AS dislikes_cnt, TRIM(CONCAT(u.name_first, ' ', u.name_last)) AS name, u.nickname, u.avatar, u.photos_dir_num FROM blog_post_comments c INNER JOIN user_users u ON c.author_id = u.id WHERE (c.post_id = 1) AND (c.approved = 1) AND (c.reply_to IS NULL);
|
5 |
0.92 ms |
SELECT c.id, c.text, DATE_FORMAT(c.date, '%M %e, %Y %h:%i:%s') AS date, c.reply_to, (
SELECT COUNT(cl.id)
FROM blog_post_comments_likes cl
WHERE cl.user_id = c.author_id AND cl.comment_id = c.id
) AS likes_cnt, (
SELECT COUNT(cd.id)
FROM blog_post_comments_dislikes cd
WHERE cd.user_id = c.author_id AND cd.comment_id = c.id
) AS dislikes_cnt, TRIM(CONCAT(u.name_first, ' ', u.name_last)) AS name, u.nickname, u.avatar, u.photos_dir_num FROM blog_post_comments c INNER JOIN user_users u ON c.author_id = u.id WHERE (c.reply_to IN (?, ?)) AND (c.approved = 1)
SELECT c.id, c.text, DATE_FORMAT(c.date, '%M %e, %Y %h:%i:%s') AS date, c.reply_to, (
SELECT COUNT(cl.id)
FROM blog_post_comments_likes cl
WHERE cl.user_id = c.author_id AND cl.comment_id = c.id
) AS likes_cnt, (
SELECT COUNT(cd.id)
FROM blog_post_comments_dislikes cd
WHERE cd.user_id = c.author_id AND cd.comment_id = c.id
) AS dislikes_cnt, TRIM(CONCAT(u.name_first, ' ', u.name_last)) AS name, u.nickname, u.avatar, u.photos_dir_num FROM blog_post_comments c INNER JOIN user_users u ON c.author_id = u.id WHERE (c.reply_to IN (1, 3)) AND (c.approved = 1);
|
6 |
0.44 ms |
SELECT COUNT(id) FROM blog_post_comments WHERE (post_id = ?) AND (approved = 1)
SELECT COUNT(id) FROM blog_post_comments WHERE (post_id = 1) AND (approved = 1);
|
7 |
0.52 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.url AS url_3, t0.avatar AS avatar_4, t0.bio AS bio_5, t0.facebook AS facebook_6, t0.twitter AS twitter_7, t0.linkedin AS linkedin_8, t0.instagram AS instagram_9, t0.pinterest AS pinterest_10 FROM blog_authors t0 WHERE t0.id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.url AS url_3, t0.avatar AS avatar_4, t0.bio AS bio_5, t0.facebook AS facebook_6, t0.twitter AS twitter_7, t0.linkedin AS linkedin_8, t0.instagram AS instagram_9, t0.pinterest AS pinterest_10 FROM blog_authors t0 WHERE t0.id = 4;
|
8 |
0.67 ms |
SELECT a.id, a.name, a.url FROM blog_authors a
SELECT a.id, a.name, a.url FROM blog_authors a;
|
9 |
0.62 ms |
SELECT a.id, a.name, a.url FROM blog_authors a
SELECT a.id, a.name, a.url FROM blog_authors a;
|
10 |
0.36 ms |
SELECT t0.id AS id_1, t0.name AS name_2 FROM blog_categories t0 WHERE t0.id = ?
SELECT t0.id AS id_1, t0.name AS name_2 FROM blog_categories t0 WHERE t0.id = 1;
|
11 |
0.50 ms |
SELECT t0.id AS id_1, t0.name AS name_2 FROM blog_tag_names t0 INNER JOIN blog_tags ON t0.id = blog_tags.tag_id WHERE blog_tags.post_id = ?
SELECT t0.id AS id_1, t0.name AS name_2 FROM blog_tag_names t0 INNER JOIN blog_tags ON t0.id = blog_tags.tag_id WHERE blog_tags.post_id = 1;
|
12 |
0.40 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.url AS url_3, t0.avatar AS avatar_4, t0.bio AS bio_5, t0.facebook AS facebook_6, t0.twitter AS twitter_7, t0.linkedin AS linkedin_8, t0.instagram AS instagram_9, t0.pinterest AS pinterest_10 FROM blog_authors t0 WHERE t0.id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.url AS url_3, t0.avatar AS avatar_4, t0.bio AS bio_5, t0.facebook AS facebook_6, t0.twitter AS twitter_7, t0.linkedin AS linkedin_8, t0.instagram AS instagram_9, t0.pinterest AS pinterest_10 FROM blog_authors t0 WHERE t0.id = 5;
|
13 |
0.58 ms |
SELECT COUNT(`id`) FROM `published_blog_posts_ids`
SELECT COUNT(`id`) FROM `published_blog_posts_ids`;
|
14 |
0.67 ms |
SELECT id, name FROM blog_categories
SELECT id, name FROM blog_categories;
|
15 |
0.58 ms |
SELECT COUNT(`id`) FROM `published_blog_posts_ids`
SELECT COUNT(`id`) FROM `published_blog_posts_ids`;
|
16 |
0.79 ms |
SELECT id, name FROM blog_tag_names ORDER BY RAND() ASC LIMIT 20
SELECT id, name FROM blog_tag_names ORDER BY RAND() ASC LIMIT 20;
|
17 |
0.56 ms |
SELECT COUNT(`id`) FROM `published_blog_posts_ids`
SELECT COUNT(`id`) FROM `published_blog_posts_ids`;
|