GET https://search.jues.net/post/VCApSLb

Query Metrics

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

Queries

Group similar statements

# Time Info
1 2.00 ms
SELECT `lang_id`, `code`, `name`, `icon` FROM `lang`
Parameters:
[]
2 2.60 ms
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
  "VCApSLb"
]
3 1.71 ms
SELECT pc.content_id, pc.post_id, pc.path, pc.width, pc.height FROM post_content pc WHERE pc.post_id IN (?)
Parameters:
[
  795586
]
4 2.26 ms
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
  795586
]
5 7.94 ms
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
  795586
]
6 2.38 ms
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:
[
  795586
  10
  3
  0
]
7 2.05 ms
SELECT `post_id`, `search_field`
                FROM `post`
                WHERE `post_id` = ?
Parameters:
[
  795586
]
8 4.02 ms
INSERT INTO `post_has_related` (`post_id`, `related_id`, `relevance`)
            VALUES (795586, 697843, 42.160034),(795586, 690923, 41.32708),(795586, 612656, 41.25819)
            ON DUPLICATE KEY UPDATE `post_id`=`post_id`, `related_id`=`related_id`
Parameters:
[]
9 2.93 ms
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
  697843
  690923
  612656
]
10 2.58 ms
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
  612656
  690923
  697843
]
11 5.18 ms
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
  612656
  690923
  697843
]
12 2.25 ms
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:
[
  795586
  10
  30
  3
]
13 2.04 ms
SELECT `post_id`, `search_field`
                FROM `post`
                WHERE `post_id` = ?
Parameters:
[
  795586
]
14 4.09 ms
INSERT INTO `post_has_related` (`post_id`, `related_id`, `relevance`)
            VALUES (795586, 697843, 42.160034),(795586, 690923, 41.32708),(795586, 612656, 41.25819),(795586, 795624, 41.13753),(795586, 795654, 40.58192),(795586, 547602, 40.21669),(795586, 602635, 39.744484),(795586, 705010, 39.601875),(795586, 664131, 39.473484),(795586, 683430, 39.450954),(795586, 503398, 39.36187),(795586, 489765, 39.29688),(795586, 693305, 39.261723),(795586, 689984, 39.222183),(795586, 713015, 38.689144),(795586, 625890, 38.636837),(795586, 498752, 38.636086),(795586, 710173, 38.618256),(795586, 516356, 38.602825),(795586, 500377, 38.3803),(795586, 674309, 38.37906),(795586, 647405, 38.104004),(795586, 563304, 38.05128),(795586, 697996, 37.98062),(795586, 626192, 37.9638),(795586, 504846, 37.903664),(795586, 695856, 37.876595),(795586, 626969, 37.84443),(795586, 546718, 37.80539),(795586, 736118, 37.7719),(795586, 662794, 37.7701),(795586, 661658, 37.657944),(795586, 703732, 37.5732)
            ON DUPLICATE KEY UPDATE `post_id`=`post_id`, `related_id`=`related_id`
Parameters:
[]
15 4.33 ms
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
  795624
  795654
  547602
  602635
  705010
  664131
  683430
  503398
  489765
  693305
  689984
  713015
  625890
  498752
  710173
  516356
  500377
  674309
  647405
  563304
  697996
  626192
  504846
  695856
  626969
  546718
  736118
  662794
  661658
  703732
]
16 2.06 ms
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
  489765
  498752
  500377
  503398
  504846
  516356
  546718
  547602
  563304
  602635
  625890
  626192
  626969
  647405
  661658
  662794
  664131
  674309
  683430
  689984
  693305
  695856
  697996
  703732
  705010
  710173
  713015
  736118
  795624
  795654
]
17 43.41 ms
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
  489765
  498752
  500377
  503398
  504846
  516356
  546718
  547602
  563304
  602635
  625890
  626192
  626969
  647405
  661658
  662794
  664131
  674309
  683430
  689984
  693305
  695856
  697996
  703732
  705010
  710173
  713015
  736118
  795624
  795654
]

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.