3
15.68 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
633176
640710
452139
470278
481162
510443
541606
483553
525451
511733
533426
541638
541630
541673
541833
541740
430621
427550
430630
531481
459734
492322
531148
541806
541634
555681
541753
560195
557526
633158
600410
643113
633458
492565
541698
584703
541738
583533
604160
593180
628398
629961
516029
542189
522035
497452
541830
565277
597480
497865
535937
486938
512058
452014
528420
541808
541640
541664
541774
650155
662020
630869
451928
495218
542199
642746
556987
541721
542192
621858
541646
541864
]
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 (633176 , 640710 , 452139 , 470278 , 481162 , 510443 , 541606 , 483553 , 525451 , 511733 , 533426 , 541638 , 541630 , 541673 , 541833 , 541740 , 430621 , 427550 , 430630 , 531481 , 459734 , 492322 , 531148 , 541806 , 541634 , 555681 , 541753 , 560195 , 557526 , 633158 , 600410 , 643113 , 633458 , 492565 , 541698 , 584703 , 541738 , 583533 , 604160 , 593180 , 628398 , 629961 , 516029 , 542189 , 522035 , 497452 , 541830 , 565277 , 597480 , 497865 , 535937 , 486938 , 512058 , 452014 , 528420 , 541808 , 541640 , 541664 , 541774 , 650155 , 662020 , 630869 , 451928 , 495218 , 542199 , 642746 , 556987 , 541721 , 542192 , 621858 , 541646 , 541864 );
Copy
4
2.98 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
427550
430621
430630
451928
452014
452139
459734
470278
481162
483553
486938
492322
492565
495218
497452
497865
510443
511733
512058
516029
522035
525451
528420
531148
531481
533426
535937
541606
541630
541634
541638
541640
541646
541664
541673
541698
541721
541738
541740
541753
541774
541806
541808
541830
541833
541864
542189
542192
542199
555681
556987
557526
560195
565277
583533
584703
593180
597480
600410
604160
621858
628398
629961
630869
633158
633176
633458
640710
642746
643113
650155
662020
]
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 (427550 , 430621 , 430630 , 451928 , 452014 , 452139 , 459734 , 470278 , 481162 , 483553 , 486938 , 492322 , 492565 , 495218 , 497452 , 497865 , 510443 , 511733 , 512058 , 516029 , 522035 , 525451 , 528420 , 531148 , 531481 , 533426 , 535937 , 541606 , 541630 , 541634 , 541638 , 541640 , 541646 , 541664 , 541673 , 541698 , 541721 , 541738 , 541740 , 541753 , 541774 , 541806 , 541808 , 541830 , 541833 , 541864 , 542189 , 542192 , 542199 , 555681 , 556987 , 557526 , 560195 , 565277 , 583533 , 584703 , 593180 , 597480 , 600410 , 604160 , 621858 , 628398 , 629961 , 630869 , 633158 , 633176 , 633458 , 640710 , 642746 , 643113 , 650155 , 662020 );
Copy
5
85.50 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
427550
430621
430630
451928
452014
452139
459734
470278
481162
483553
486938
492322
492565
495218
497452
497865
510443
511733
512058
516029
522035
525451
528420
531148
531481
533426
535937
541606
541630
541634
541638
541640
541646
541664
541673
541698
541721
541738
541740
541753
541774
541806
541808
541830
541833
541864
542189
542192
542199
555681
556987
557526
560195
565277
583533
584703
593180
597480
600410
604160
621858
628398
629961
630869
633158
633176
633458
640710
642746
643113
650155
662020
]
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 (427550 , 430621 , 430630 , 451928 , 452014 , 452139 , 459734 , 470278 , 481162 , 483553 , 486938 , 492322 , 492565 , 495218 , 497452 , 497865 , 510443 , 511733 , 512058 , 516029 , 522035 , 525451 , 528420 , 531148 , 531481 , 533426 , 535937 , 541606 , 541630 , 541634 , 541638 , 541640 , 541646 , 541664 , 541673 , 541698 , 541721 , 541738 , 541740 , 541753 , 541774 , 541806 , 541808 , 541830 , 541833 , 541864 , 542189 , 542192 , 542199 , 555681 , 556987 , 557526 , 560195 , 565277 , 583533 , 584703 , 593180 , 597480 , 600410 , 604160 , 621858 , 628398 , 629961 , 630869 , 633158 , 633176 , 633458 , 640710 , 642746 , 643113 , 650155 , 662020 );
Copy