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

Query Metrics

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

Grouped Statements

Show all queries

Time Count Info
42.42 ms
(48.33%)
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
  415776
  439572
  485985
  525705
  578308
  586558
  610639
  614431
  614520
  614978
  616292
  622297
  639982
  676389
  686203
  695559
  717523
  728903
  734353
  756458
  763136
  767183
  787691
  800015
  813172
  814429
  817571
  823346
  826278
  827190
]
6.04 ms
(6.88%)
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
  814429
  439572
  767183
  717523
  586558
  610639
  826278
  817571
  614978
  728903
  800015
  734353
  415776
  639982
  485985
  622297
  813172
  756458
  614431
  578308
  614520
  686203
  763136
  525705
  787691
  827190
  616292
  695559
  676389
  823346
]
4.98 ms
(5.68%)
1
INSERT INTO `post_has_related` (`post_id`, `related_id`, `relevance`)
            VALUES (795052, 476674, 66.47413),(795052, 628485, 64.69639),(795052, 523662, 63.564007),(795052, 814429, 61.815044),(795052, 439572, 61.69754),(795052, 767183, 60.955036),(795052, 717523, 60.731087),(795052, 586558, 59.958927),(795052, 610639, 59.860405),(795052, 826278, 59.848835),(795052, 817571, 59.553036),(795052, 614978, 59.443787),(795052, 728903, 59.320732),(795052, 800015, 59.25105),(795052, 734353, 58.911842),(795052, 415776, 58.672554),(795052, 639982, 58.61392),(795052, 485985, 58.306217),(795052, 622297, 58.075073),(795052, 813172, 57.811493),(795052, 756458, 57.77524),(795052, 614431, 57.57376),(795052, 578308, 57.50462),(795052, 614520, 57.36255),(795052, 686203, 57.281227),(795052, 763136, 57.085636),(795052, 525705, 57.00566),(795052, 787691, 57.00332),(795052, 827190, 56.926918),(795052, 616292, 56.692234),(795052, 695559, 56.358334),(795052, 676389, 56.32438),(795052, 823346, 56.289757)
            ON DUPLICATE KEY UPDATE `post_id`=`post_id`, `related_id`=`related_id`
Parameters:
[]
4.59 ms
(5.23%)
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:
[
  795052
  10
  3
  0
]
4.54 ms
(5.17%)
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
  795052
]
4.11 ms
(4.68%)
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
  476674
  523662
  628485
]
3.88 ms
(4.42%)
2
SELECT `post_id`, `search_field`
                FROM `post`
                WHERE `post_id` = ?
Parameters:
[
  795052
]
2.92 ms
(3.32%)
1
INSERT INTO `post_has_related` (`post_id`, `related_id`, `relevance`)
            VALUES (795052, 476674, 66.47413),(795052, 628485, 64.69639),(795052, 523662, 63.564007)
            ON DUPLICATE KEY UPDATE `post_id`=`post_id`, `related_id`=`related_id`
Parameters:
[]
2.66 ms
(3.03%)
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
  415776
  439572
  485985
  525705
  578308
  586558
  610639
  614431
  614520
  614978
  616292
  622297
  639982
  676389
  686203
  695559
  717523
  728903
  734353
  756458
  763136
  767183
  787691
  800015
  813172
  814429
  817571
  823346
  826278
  827190
]
2.63 ms
(2.99%)
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
  "tuk6XMB"
]
1.99 ms
(2.26%)
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
  476674
  628485
  523662
]
1.94 ms
(2.21%)
1
SELECT pc.content_id, pc.post_id, pc.path, pc.width, pc.height FROM post_content pc WHERE pc.post_id IN (?)
Parameters:
[
  795052
]
1.87 ms
(2.13%)
1
SELECT `lang_id`, `code`, `name`, `icon` FROM `lang`
Parameters:
[]
1.73 ms
(1.97%)
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
  795052
]
1.50 ms
(1.71%)
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
  476674
  523662
  628485
]

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.