| 4 |
17.35 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
489901
520926
580222
689736
560153
597869
388770
427794
422491
525663
410712
428238
463737
399587
475045
558414
494797
477899
802049
468856
399568
486673
533799
536774
472800
528906
494339
486831
475304
553448
580589
434642
475033
465075
492067
574777
399209
487518
522016
525622
427966
513901
502703
560211
564564
447955
495694
534385
518768
560202
524388
523629
560198
553446
560204
462824
415882
446977
492273
560212
404308
534296
492279
581095
498033
565539
689614
520814
437810
589107
458327
473472
552198
565542
493420
399591
518108
445672
625167
487072
440625
492267
421214
420659
563479
572886
553942
591216
609591
589048
483223
613129
560205
503840
603954
]
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 (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?
)
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`=1 LEFT JOIN post_translation r ON `p`.`post_id` = `r`.`post_id` AND `r`.`lang_id`=2 WHERE p.post_id IN (489901, 520926, 580222, 689736, 560153, 597869, 388770, 427794, 422491, 525663, 410712, 428238, 463737, 399587, 475045, 558414, 494797, 477899, 802049, 468856, 399568, 486673, 533799, 536774, 472800, 528906, 494339, 486831, 475304, 553448, 580589, 434642, 475033, 465075, 492067, 574777, 399209, 487518, 522016, 525622, 427966, 513901, 502703, 560211, 564564, 447955, 495694, 534385, 518768, 560202, 524388, 523629, 560198, 553446, 560204, 462824, 415882, 446977, 492273, 560212, 404308, 534296, 492279, 581095, 498033, 565539, 689614, 520814, 437810, 589107, 458327, 473472, 552198, 565542, 493420, 399591, 518108, 445672, 625167, 487072, 440625, 492267, 421214, 420659, 563479, 572886, 553942, 591216, 609591, 589048, 483223, 613129, 560205, 503840, 603954);
|
| 5 |
4.02 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
388770
399209
399568
399587
399591
404308
410712
415882
420659
421214
422491
427794
427966
428238
434642
437810
440625
445672
446977
447955
458327
462824
463737
465075
468856
472800
473472
475033
475045
475304
477899
483223
486673
486831
487072
487518
489901
492067
492267
492273
492279
493420
494339
494797
495694
498033
502703
503840
513901
518108
518768
520814
520926
522016
523629
524388
525622
525663
528906
533799
534296
534385
536774
552198
553446
553448
553942
558414
560153
560198
560202
560204
560205
560211
560212
563479
564564
565539
565542
572886
574777
580222
580589
581095
589048
589107
591216
597869
603954
609591
613129
625167
689614
689736
802049
]
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 (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?
)
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=1 LEFT JOIN tag_translation r ON `t`.`tag_id` = `r`.`tag_id` AND `r`.`lang_id`=2 WHERE pht.post_id IN (388770, 399209, 399568, 399587, 399591, 404308, 410712, 415882, 420659, 421214, 422491, 427794, 427966, 428238, 434642, 437810, 440625, 445672, 446977, 447955, 458327, 462824, 463737, 465075, 468856, 472800, 473472, 475033, 475045, 475304, 477899, 483223, 486673, 486831, 487072, 487518, 489901, 492067, 492267, 492273, 492279, 493420, 494339, 494797, 495694, 498033, 502703, 503840, 513901, 518108, 518768, 520814, 520926, 522016, 523629, 524388, 525622, 525663, 528906, 533799, 534296, 534385, 536774, 552198, 553446, 553448, 553942, 558414, 560153, 560198, 560202, 560204, 560205, 560211, 560212, 563479, 564564, 565539, 565542, 572886, 574777, 580222, 580589, 581095, 589048, 589107, 591216, 597869, 603954, 609591, 613129, 625167, 689614, 689736, 802049);
|
| 6 |
150.51 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
388770
399209
399568
399587
399591
404308
410712
415882
420659
421214
422491
427794
427966
428238
434642
437810
440625
445672
446977
447955
458327
462824
463737
465075
468856
472800
473472
475033
475045
475304
477899
483223
486673
486831
487072
487518
489901
492067
492267
492273
492279
493420
494339
494797
495694
498033
502703
503840
513901
518108
518768
520814
520926
522016
523629
524388
525622
525663
528906
533799
534296
534385
536774
552198
553446
553448
553942
558414
560153
560198
560202
560204
560205
560211
560212
563479
564564
565539
565542
572886
574777
580222
580589
581095
589048
589107
591216
597869
603954
609591
613129
625167
689614
689736
802049
]
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 (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?
)
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=1 LEFT JOIN category_translation r ON `c`.`category_id` = `r`.`category_id` AND `r`.`lang_id`=2 WHERE phc.post_id IN (388770, 399209, 399568, 399587, 399591, 404308, 410712, 415882, 420659, 421214, 422491, 427794, 427966, 428238, 434642, 437810, 440625, 445672, 446977, 447955, 458327, 462824, 463737, 465075, 468856, 472800, 473472, 475033, 475045, 475304, 477899, 483223, 486673, 486831, 487072, 487518, 489901, 492067, 492267, 492273, 492279, 493420, 494339, 494797, 495694, 498033, 502703, 503840, 513901, 518108, 518768, 520814, 520926, 522016, 523629, 524388, 525622, 525663, 528906, 533799, 534296, 534385, 536774, 552198, 553446, 553448, 553942, 558414, 560153, 560198, 560202, 560204, 560205, 560211, 560212, 563479, 564564, 565539, 565542, 572886, 574777, 580222, 580589, 581095, 589048, 589107, 591216, 597869, 603954, 609591, 613129, 625167, 689614, 689736, 802049);
|