Query Metrics

17 Database Queries
15 Different statements
92.35 ms Query time
0 Invalid entities

Grouped Statements

Show all queries

Time Count Info
47.02 ms
(50.92%)
1
SELECT phc.post_id, phc.category_id, c.slug, IFNULL(`r`.`name`, `f`.`name`) as `name` FROM post_has_category phc INNER JOIN category c ON phc.category_id = c.category_id AND c.enabled = 1 LEFT JOIN category_translation f ON c.category_id = f.category_id  AND  f.lang_id=? LEFT JOIN category_translation r ON `c`.`category_id` = `r`.`category_id`  AND  `r`.`lang_id`=? WHERE phc.post_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1
  2
  409421
  418389
  429782
  437634
  444163
  449602
  450585
  480963
  504529
  527260
  528414
  529141
  531178
  588945
  601164
  603025
  621356
  622323
  625088
  671928
  703289
  723742
  756703
  771071
  798893
  811712
  816193
  823373
  823543
  824643
]
7.44 ms
(8.05%)
1
SELECT phc.post_id, phc.category_id, c.slug, IFNULL(`r`.`name`, `f`.`name`) as `name` FROM post_has_category phc INNER JOIN category c ON phc.category_id = c.category_id AND c.enabled = 1 LEFT JOIN category_translation f ON c.category_id = f.category_id  AND  f.lang_id=? LEFT JOIN category_translation r ON `c`.`category_id` = `r`.`category_id`  AND  `r`.`lang_id`=? WHERE phc.post_id IN (?, ?, ?)
Parameters:
[
  1
  2
  515023
  592180
  765530
]
5.48 ms
(5.94%)
1
SELECT p.post_id, p.user_id, p.content_id, p.public_key, p.search_field, p.cover, p.type, p.sexual_orientation, p.orientation, p.quality, p.noindex, p.nofollow, p.contents_num, p.duration, p.likes, p.dislikes, p.views, p.vote_rating, p.params, p.published_at, IFNULL(`r`.`title`, `f`.`title`) as `title`, IFNULL(`r`.`custom1`, `f`.`custom1`) as `custom1`, IFNULL(`r`.`custom2`, `f`.`custom2`) as `custom2` FROM post p LEFT JOIN post_translation f ON `p`.`post_id` = `f`.`post_id`  AND  `f`.`lang_id`=? LEFT JOIN post_translation r ON `p`.`post_id` = `r`.`post_id`  AND  `r`.`lang_id`=? WHERE p.post_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1
  2
  418389
  531178
  816193
  588945
  603025
  444163
  723742
  529141
  621356
  824643
  437634
  625088
  756703
  528414
  823543
  527260
  811712
  601164
  671928
  823373
  771071
  703289
  429782
  622323
  449602
  480963
  450585
  504529
  798893
  409421
]
5.02 ms
(5.44%)
1
SELECT phc.post_id, phc.category_id, c.slug, IFNULL(`r`.`name`, `f`.`name`) as `name` FROM post_has_category phc INNER JOIN category c ON phc.category_id = c.category_id AND c.enabled = 1 LEFT JOIN category_translation f ON c.category_id = f.category_id  AND  f.lang_id=? LEFT JOIN category_translation r ON `c`.`category_id` = `r`.`category_id`  AND  `r`.`lang_id`=? WHERE phc.post_id IN (?)
Parameters:
[
  1
  2
  825662
]
4.82 ms
(5.22%)
1
INSERT INTO `post_has_related` (`post_id`, `related_id`, `relevance`)
            VALUES (825662, 765530, 63.233276),(825662, 592180, 55.394047),(825662, 515023, 54.389935),(825662, 418389, 53.974636),(825662, 531178, 53.36605),(825662, 816193, 52.575504),(825662, 588945, 52.066074),(825662, 603025, 51.96738),(825662, 444163, 51.1822),(825662, 723742, 51.057915),(825662, 529141, 50.465126),(825662, 621356, 50.41638),(825662, 824643, 50.098377),(825662, 437634, 49.89095),(825662, 625088, 49.489403),(825662, 756703, 48.99527),(825662, 528414, 48.62706),(825662, 823543, 48.525215),(825662, 527260, 48.30979),(825662, 811712, 48.193607),(825662, 601164, 48.011524),(825662, 671928, 47.942623),(825662, 823373, 47.815372),(825662, 771071, 47.795856),(825662, 703289, 47.650723),(825662, 429782, 47.592926),(825662, 622323, 47.49324),(825662, 449602, 47.450256),(825662, 480963, 47.21189),(825662, 450585, 47.146767),(825662, 504529, 47.057533),(825662, 798893, 46.985428),(825662, 409421, 46.959538)
            ON DUPLICATE KEY UPDATE `post_id`=`post_id`, `related_id`=`related_id`
Parameters:
[]
3.72 ms
(4.02%)
2
SELECT `phr`.`related_id`
                FROM `post_has_related` as `phr`
                LEFT JOIN `post` as `p` USING (`post_id`)
                WHERE `phr`.`post_id` = ? AND `p`.`status` = ?
                LIMIT ?
                OFFSET ?
Parameters:
[
  825662
  10
  3
  0
]
2.85 ms
(3.09%)
2
SELECT `post_id`, `search_field`
                FROM `post`
                WHERE `post_id` = ?
Parameters:
[
  825662
]
2.59 ms
(2.81%)
1
SELECT p.post_id, p.user_id, p.content_id, p.public_key, p.search_field, p.cover, p.type, p.sexual_orientation, p.orientation, p.quality, p.noindex, p.nofollow, p.contents_num, p.duration, p.likes, p.dislikes, p.views, p.vote_rating, p.params, p.published_at, IFNULL(`r`.`title`, `f`.`title`) as `title`, IFNULL(`r`.`custom1`, `f`.`custom1`) as `custom1`, IFNULL(`r`.`custom2`, `f`.`custom2`) as `custom2` FROM post p LEFT JOIN post_translation f ON `p`.`post_id` = `f`.`post_id`  AND  `f`.`lang_id`=? LEFT JOIN post_translation r ON `p`.`post_id` = `r`.`post_id`  AND  `r`.`lang_id`=? WHERE p.post_id IN (?, ?, ?)
Parameters:
[
  1
  2
  765530
  592180
  515023
]
2.47 ms
(2.67%)
1
SELECT p.post_id, p.user_id, p.content_id, p.channel_id, p.public_key, p.cover, p.type, p.sexual_orientation, p.orientation, p.quality, p.noindex, p.nofollow, p.contents_num, p.duration, p.likes, p.dislikes, p.views, p.vote_rating, p.params, p.status, p.published_at, u.username, IFNULL(`r`.`title`, `f`.`title`) as `title`, IFNULL(`r`.`description`, `f`.`description`) as `description`, IFNULL(`r`.`custom1`, `f`.`custom1`) as `custom1`, IFNULL(`r`.`custom2`, `f`.`custom2`) as `custom2` FROM post p LEFT JOIN post_translation f ON `p`.`post_id` = `f`.`post_id` AND `f`.`lang_id`=? LEFT JOIN user u ON `p`.`user_id` = `u`.`user_id` LEFT JOIN post_translation r ON `p`.`post_id` = `r`.`post_id`  AND  `r`.`lang_id`=? WHERE `p`.`public_key` = ? LIMIT 1
Parameters:
[
  1
  2
  "sZ46S7i"
]
2.06 ms
(2.24%)
1
SELECT pht.post_id, pht.tag_id, t.slug, IFNULL(`r`.`name`, `f`.`name`) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht.tag_id = t.tag_id AND t.enabled = 1 LEFT JOIN tag_translation f ON t.tag_id = f.tag_id AND f.lang_id=? LEFT JOIN tag_translation r ON `t`.`tag_id` = `r`.`tag_id` AND `r`.`lang_id`=? WHERE pht.post_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1
  2
  409421
  418389
  429782
  437634
  444163
  449602
  450585
  480963
  504529
  527260
  528414
  529141
  531178
  588945
  601164
  603025
  621356
  622323
  625088
  671928
  703289
  723742
  756703
  771071
  798893
  811712
  816193
  823373
  823543
  824643
]
2.02 ms
(2.19%)
1
INSERT INTO `post_has_related` (`post_id`, `related_id`, `relevance`)
            VALUES (825662, 765530, 63.233276),(825662, 592180, 55.394047),(825662, 515023, 54.389935)
            ON DUPLICATE KEY UPDATE `post_id`=`post_id`, `related_id`=`related_id`
Parameters:
[]
2.02 ms
(2.19%)
1
SELECT pht.post_id, pht.tag_id, t.slug, IFNULL(`r`.`name`, `f`.`name`) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht.tag_id = t.tag_id AND t.enabled = 1 LEFT JOIN tag_translation f ON t.tag_id = f.tag_id AND f.lang_id=? LEFT JOIN tag_translation r ON `t`.`tag_id` = `r`.`tag_id` AND `r`.`lang_id`=? WHERE pht.post_id IN (?, ?, ?)
Parameters:
[
  1
  2
  515023
  592180
  765530
]
1.82 ms
(1.98%)
1
SELECT pht.post_id, pht.tag_id, t.slug, IFNULL(`r`.`name`, `f`.`name`) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht.tag_id = t.tag_id AND t.enabled = 1 LEFT JOIN tag_translation f ON t.tag_id = f.tag_id AND f.lang_id=? LEFT JOIN tag_translation r ON `t`.`tag_id` = `r`.`tag_id` AND `r`.`lang_id`=? WHERE pht.post_id IN (?)
Parameters:
[
  1
  2
  825662
]
1.57 ms
(1.70%)
1
SELECT pc.content_id, pc.post_id, pc.path, pc.width, pc.height FROM post_content pc WHERE pc.post_id IN (?)
Parameters:
[
  825662
]
1.42 ms
(1.54%)
1
SELECT `lang_id`, `code`, `name`, `icon` FROM `lang`
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.

Entities Mapping

No loaded entities.