Query Metrics

17 Database Queries
13 Different statements
11.27 ms Query time
0 Invalid entities

Queries

Group similar statements

# Time Info
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"
]
2 0.49 ms
SELECT COUNT(id) FROM blog_post_likes WHERE post_id = ?
Parameters:
[
  1
]
3 0.40 ms
SELECT COUNT(id) FROM blog_post_dislikes WHERE post_id = ?
Parameters:
[
  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)
Parameters:
[
  1
]
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)
Parameters:
[
  1
  3
]
6 0.44 ms
SELECT COUNT(id) FROM blog_post_comments WHERE (post_id = ?) AND (approved = 1)
Parameters:
[
  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 = ?
Parameters:
[
  4
]
8 0.67 ms
SELECT a.id, a.name, a.url FROM blog_authors a
Parameters:
[]
9 0.62 ms
SELECT a.id, a.name, a.url FROM blog_authors a
Parameters:
[]
10 0.36 ms
SELECT t0.id AS id_1, t0.name AS name_2 FROM blog_categories t0 WHERE t0.id = ?
Parameters:
[
  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 = ?
Parameters:
[
  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 = ?
Parameters:
[
  5
]
13 0.58 ms
SELECT COUNT(`id`) FROM `published_blog_posts_ids`
Parameters:
[]
14 0.67 ms
SELECT id, name FROM blog_categories
Parameters:
[]
15 0.58 ms
SELECT COUNT(`id`) FROM `published_blog_posts_ids`
Parameters:
[]
16 0.79 ms
SELECT id, name FROM blog_tag_names ORDER BY RAND() ASC LIMIT 20
Parameters:
[]
17 0.56 ms
SELECT COUNT(`id`) FROM `published_blog_posts_ids`
Parameters:
[]

Database Connections

Name Service
default doctrine.dbal.default_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

Second Level Cache is not enabled.