| 4 |
13.10 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
525092
522905
451652
528412
463518
558958
554060
601176
620252
590886
423740
463514
423881
478517
477809
524100
523454
525179
518171
497793
828685
754586
449717
527966
442883
496977
514315
521617
810163
746826
689886
758082
542971
577711
828128
652786
607981
527272
588426
594590
516938
813629
524490
490091
523499
697666
758903
769930
781873
776607
713361
451317
457023
535037
579448
803460
415507
460447
490557
564488
727465
494705
440838
516230
425588
746801
758559
780098
667024
588833
774663
439455
548919
774244
438460
442800
560046
579405
575812
576054
606556
411422
516613
470067
445728
575488
599700
548848
571806
576113
]
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 (525092, 522905, 451652, 528412, 463518, 558958, 554060, 601176, 620252, 590886, 423740, 463514, 423881, 478517, 477809, 524100, 523454, 525179, 518171, 497793, 828685, 754586, 449717, 527966, 442883, 496977, 514315, 521617, 810163, 746826, 689886, 758082, 542971, 577711, 828128, 652786, 607981, 527272, 588426, 594590, 516938, 813629, 524490, 490091, 523499, 697666, 758903, 769930, 781873, 776607, 713361, 451317, 457023, 535037, 579448, 803460, 415507, 460447, 490557, 564488, 727465, 494705, 440838, 516230, 425588, 746801, 758559, 780098, 667024, 588833, 774663, 439455, 548919, 774244, 438460, 442800, 560046, 579405, 575812, 576054, 606556, 411422, 516613, 470067, 445728, 575488, 599700, 548848, 571806, 576113);
|
| 5 |
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
411422
415507
423740
423881
425588
438460
439455
440838
442800
442883
445728
449717
451317
451652
457023
460447
463514
463518
470067
477809
478517
490091
490557
494705
496977
497793
514315
516230
516613
516938
518171
521617
522905
523454
523499
524100
524490
525092
525179
527272
527966
528412
535037
542971
548848
548919
554060
558958
560046
564488
571806
575488
575812
576054
576113
577711
579405
579448
588426
588833
590886
594590
599700
601176
606556
607981
620252
652786
667024
689886
697666
713361
727465
746801
746826
754586
758082
758559
758903
769930
774244
774663
776607
780098
781873
803460
810163
813629
828128
828685
]
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 (411422, 415507, 423740, 423881, 425588, 438460, 439455, 440838, 442800, 442883, 445728, 449717, 451317, 451652, 457023, 460447, 463514, 463518, 470067, 477809, 478517, 490091, 490557, 494705, 496977, 497793, 514315, 516230, 516613, 516938, 518171, 521617, 522905, 523454, 523499, 524100, 524490, 525092, 525179, 527272, 527966, 528412, 535037, 542971, 548848, 548919, 554060, 558958, 560046, 564488, 571806, 575488, 575812, 576054, 576113, 577711, 579405, 579448, 588426, 588833, 590886, 594590, 599700, 601176, 606556, 607981, 620252, 652786, 667024, 689886, 697666, 713361, 727465, 746801, 746826, 754586, 758082, 758559, 758903, 769930, 774244, 774663, 776607, 780098, 781873, 803460, 810163, 813629, 828128, 828685);
|
| 6 |
144.32 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
411422
415507
423740
423881
425588
438460
439455
440838
442800
442883
445728
449717
451317
451652
457023
460447
463514
463518
470067
477809
478517
490091
490557
494705
496977
497793
514315
516230
516613
516938
518171
521617
522905
523454
523499
524100
524490
525092
525179
527272
527966
528412
535037
542971
548848
548919
554060
558958
560046
564488
571806
575488
575812
576054
576113
577711
579405
579448
588426
588833
590886
594590
599700
601176
606556
607981
620252
652786
667024
689886
697666
713361
727465
746801
746826
754586
758082
758559
758903
769930
774244
774663
776607
780098
781873
803460
810163
813629
828128
828685
]
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 (411422, 415507, 423740, 423881, 425588, 438460, 439455, 440838, 442800, 442883, 445728, 449717, 451317, 451652, 457023, 460447, 463514, 463518, 470067, 477809, 478517, 490091, 490557, 494705, 496977, 497793, 514315, 516230, 516613, 516938, 518171, 521617, 522905, 523454, 523499, 524100, 524490, 525092, 525179, 527272, 527966, 528412, 535037, 542971, 548848, 548919, 554060, 558958, 560046, 564488, 571806, 575488, 575812, 576054, 576113, 577711, 579405, 579448, 588426, 588833, 590886, 594590, 599700, 601176, 606556, 607981, 620252, 652786, 667024, 689886, 697666, 713361, 727465, 746801, 746826, 754586, 758082, 758559, 758903, 769930, 774244, 774663, 776607, 780098, 781873, 803460, 810163, 813629, 828128, 828685);
|