Query Metrics

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

Queries

Group similar statements

# Time Info
1 0.63 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:
[
  "general-solar-storage-news-why-buying-solar-now-is-often-better-than-later"
]
2 0.47 ms
SELECT COUNT(id) FROM blog_post_likes WHERE post_id = ?
Parameters:
[
  3
]
3 0.36 ms
SELECT COUNT(id) FROM blog_post_dislikes WHERE post_id = ?
Parameters:
[
  3
]
4 0.65 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:
[
  3
]
5 0.47 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 (NULL)) AND (c.approved = 1)
Parameters:
[]
6 0.45 ms
SELECT COUNT(id) FROM blog_post_comments WHERE (post_id = ?) AND (approved = 1)
Parameters:
[
  3
]
7 0.38 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:
[
  6
]
8 0.59 ms
SELECT a.id, a.name, a.url FROM blog_authors a
Parameters:
[]
9 0.57 ms
SELECT a.id, a.name, a.url FROM blog_authors a
Parameters:
[]
10 0.34 ms
SELECT t0.id AS id_1, t0.name AS name_2 FROM blog_categories t0 WHERE t0.id = ?
Parameters:
[
  3
]
11 0.58 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:
[
  3
]
12 0.53 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:
[
  2
]
13 0.60 ms
SELECT COUNT(`id`) FROM `published_blog_posts_ids`
Parameters:
[]
14 0.66 ms
SELECT id, name FROM blog_categories
Parameters:
[]
15 0.83 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 19
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.