4
13.81 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
783426
721566
756117
756081
815102
682541
582542
555791
714140
700290
643928
673595
674702
686020
560985
641088
516448
583707
636296
703841
531263
676633
732878
531120
535584
631247
768901
532738
536645
583622
664583
651148
483543
773707
736818
779354
716006
470315
818518
818523
515541
767201
516686
398666
527921
702162
603910
585160
569981
667760
679761
780530
462841
468447
511622
572772
418494
516457
666866
667750
712995
481847
503411
516450
452480
702166
670758
470283
462372
680197
533746
495753
]
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 (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ?
)
Copy
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 (783426 , 721566 , 756117 , 756081 , 815102 , 682541 , 582542 , 555791 , 714140 , 700290 , 643928 , 673595 , 674702 , 686020 , 560985 , 641088 , 516448 , 583707 , 636296 , 703841 , 531263 , 676633 , 732878 , 531120 , 535584 , 631247 , 768901 , 532738 , 536645 , 583622 , 664583 , 651148 , 483543 , 773707 , 736818 , 779354 , 716006 , 470315 , 818518 , 818523 , 515541 , 767201 , 516686 , 398666 , 527921 , 702162 , 603910 , 585160 , 569981 , 667760 , 679761 , 780530 , 462841 , 468447 , 511622 , 572772 , 418494 , 516457 , 666866 , 667750 , 712995 , 481847 , 503411 , 516450 , 452480 , 702166 , 670758 , 470283 , 462372 , 680197 , 533746 , 495753 );
Copy
5
2.38 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
398666
418494
452480
462372
462841
468447
470283
470315
481847
483543
495753
503411
511622
515541
516448
516450
516457
516686
527921
531120
531263
532738
533746
535584
536645
555791
560985
569981
572772
582542
583622
583707
585160
603910
631247
636296
641088
643928
651148
664583
666866
667750
667760
670758
673595
674702
676633
679761
680197
682541
686020
700290
702162
702166
703841
712995
714140
716006
721566
732878
736818
756081
756117
767201
768901
773707
779354
780530
783426
815102
818518
818523
]
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 (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ?
)
Copy
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 (398666 , 418494 , 452480 , 462372 , 462841 , 468447 , 470283 , 470315 , 481847 , 483543 , 495753 , 503411 , 511622 , 515541 , 516448 , 516450 , 516457 , 516686 , 527921 , 531120 , 531263 , 532738 , 533746 , 535584 , 536645 , 555791 , 560985 , 569981 , 572772 , 582542 , 583622 , 583707 , 585160 , 603910 , 631247 , 636296 , 641088 , 643928 , 651148 , 664583 , 666866 , 667750 , 667760 , 670758 , 673595 , 674702 , 676633 , 679761 , 680197 , 682541 , 686020 , 700290 , 702162 , 702166 , 703841 , 712995 , 714140 , 716006 , 721566 , 732878 , 736818 , 756081 , 756117 , 767201 , 768901 , 773707 , 779354 , 780530 , 783426 , 815102 , 818518 , 818523 );
Copy
6
114.27 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
398666
418494
452480
462372
462841
468447
470283
470315
481847
483543
495753
503411
511622
515541
516448
516450
516457
516686
527921
531120
531263
532738
533746
535584
536645
555791
560985
569981
572772
582542
583622
583707
585160
603910
631247
636296
641088
643928
651148
664583
666866
667750
667760
670758
673595
674702
676633
679761
680197
682541
686020
700290
702162
702166
703841
712995
714140
716006
721566
732878
736818
756081
756117
767201
768901
773707
779354
780530
783426
815102
818518
818523
]
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 (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ?
)
Copy
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 (398666 , 418494 , 452480 , 462372 , 462841 , 468447 , 470283 , 470315 , 481847 , 483543 , 495753 , 503411 , 511622 , 515541 , 516448 , 516450 , 516457 , 516686 , 527921 , 531120 , 531263 , 532738 , 533746 , 535584 , 536645 , 555791 , 560985 , 569981 , 572772 , 582542 , 583622 , 583707 , 585160 , 603910 , 631247 , 636296 , 641088 , 643928 , 651148 , 664583 , 666866 , 667750 , 667760 , 670758 , 673595 , 674702 , 676633 , 679761 , 680197 , 682541 , 686020 , 700290 , 702162 , 702166 , 703841 , 712995 , 714140 , 716006 , 721566 , 732878 , 736818 , 756081 , 756117 , 767201 , 768901 , 773707 , 779354 , 780530 , 783426 , 815102 , 818518 , 818523 );
Copy