GET https://search.jues.net/post/cK-R9GS

Query Metrics

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

Queries

Group similar statements

# Time Info
1 1.61 ms
SELECT `lang_id`, `code`, `name`, `icon` FROM `lang`
Parameters:
[]
2 2.08 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
  "cK-R9GS"
]
3 1.42 ms
SELECT pc.content_id, pc.post_id, pc.path, pc.width, pc.height FROM post_content pc WHERE pc.post_id IN (?)
Parameters:
[
  818270
]
4 1.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
  818270
]
5 6.77 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
  818270
]
6 1.76 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:
[
  818270
  10
  3
  0
]
7 1.70 ms
SELECT `post_id`, `search_field`
                FROM `post`
                WHERE `post_id` = ?
Parameters:
[
  818270
]
8 2.35 ms
INSERT INTO `post_has_related` (`post_id`, `related_id`, `relevance`)
            VALUES (818270, 561806, 86.370804),(818270, 388638, 78.15381),(818270, 753459, 75.097435)
            ON DUPLICATE KEY UPDATE `post_id`=`post_id`, `related_id`=`related_id`
Parameters:
[]
9 2.53 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
  561806
  388638
  753459
]
10 2.94 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
  388638
  561806
  753459
]
11 7.96 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
  388638
  561806
  753459
]
12 2.41 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:
[
  818270
  10
  30
  3
]
13 1.75 ms
SELECT `post_id`, `search_field`
                FROM `post`
                WHERE `post_id` = ?
Parameters:
[
  818270
]
14 3.92 ms
INSERT INTO `post_has_related` (`post_id`, `related_id`, `relevance`)
            VALUES (818270, 561806, 86.370804),(818270, 388638, 78.15381),(818270, 753459, 75.097435),(818270, 509940, 72.92856),(818270, 512375, 72.786415),(818270, 417801, 71.76881),(818270, 463072, 71.4614),(818270, 580168, 71.01059),(818270, 594301, 70.7153),(818270, 509621, 70.54205),(818270, 465216, 70.16282),(818270, 724247, 69.180626),(818270, 443197, 69.11246),(818270, 683850, 68.98393),(818270, 725106, 68.638824),(818270, 790841, 68.594124),(818270, 705665, 68.48217),(818270, 482624, 68.457214),(818270, 386346, 68.452),(818270, 465151, 68.362076),(818270, 646183, 67.8662),(818270, 509669, 67.38831),(818270, 760788, 67.30153),(818270, 675062, 67.186356),(818270, 486130, 67.18618),(818270, 565475, 67.08442),(818270, 683854, 66.92021),(818270, 498817, 66.90428),(818270, 365348, 66.87744),(818270, 595861, 66.86627),(818270, 679847, 66.73286),(818270, 753966, 66.71115),(818270, 432513, 66.643845)
            ON DUPLICATE KEY UPDATE `post_id`=`post_id`, `related_id`=`related_id`
Parameters:
[]
15 5.90 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
  509940
  512375
  417801
  463072
  580168
  594301
  509621
  465216
  724247
  443197
  683850
  725106
  790841
  705665
  482624
  386346
  465151
  646183
  509669
  760788
  675062
  486130
  565475
  683854
  498817
  365348
  595861
  679847
  753966
  432513
]
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
  365348
  386346
  417801
  432513
  443197
  463072
  465151
  465216
  482624
  486130
  498817
  509621
  509669
  509940
  512375
  565475
  580168
  594301
  595861
  646183
  675062
  679847
  683850
  683854
  705665
  724247
  725106
  753966
  760788
  790841
]
17 64.07 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
  365348
  386346
  417801
  432513
  443197
  463072
  465151
  465216
  482624
  486130
  498817
  509621
  509669
  509940
  512375
  565475
  580168
  594301
  595861
  646183
  675062
  679847
  683850
  683854
  705665
  724247
  725106
  753966
  760788
  790841
]

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.