3
10.84 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
759935
759555
724190
818629
606127
717025
743817
709575
603656
800028
742007
734673
396952
646000
755375
619477
760721
756685
796432
802128
721748
474146
569068
795140
757018
734484
602632
753248
673124
785370
756863
383940
606619
618839
606616
795142
801542
425976
401224
584104
710588
606059
606644
775751
775810
788178
569198
417736
428533
520945
619480
465520
650195
795593
800030
724111
717034
419503
466927
428509
561005
606608
806084
761275
606624
446085
453125
538817
596960
603610
428531
630405
480772
]
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 (759935 , 759555 , 724190 , 818629 , 606127 , 717025 , 743817 , 709575 , 603656 , 800028 , 742007 , 734673 , 396952 , 646000 , 755375 , 619477 , 760721 , 756685 , 796432 , 802128 , 721748 , 474146 , 569068 , 795140 , 757018 , 734484 , 602632 , 753248 , 673124 , 785370 , 756863 , 383940 , 606619 , 618839 , 606616 , 795142 , 801542 , 425976 , 401224 , 584104 , 710588 , 606059 , 606644 , 775751 , 775810 , 788178 , 569198 , 417736 , 428533 , 520945 , 619480 , 465520 , 650195 , 795593 , 800030 , 724111 , 717034 , 419503 , 466927 , 428509 , 561005 , 606608 , 806084 , 761275 , 606624 , 446085 , 453125 , 538817 , 596960 , 603610 , 428531 , 630405 , 480772 );
Copy
4
2.32 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
383940
396952
401224
417736
419503
425976
428509
428531
428533
446085
453125
465520
466927
474146
480772
520945
538817
561005
569068
569198
584104
596960
602632
603610
603656
606059
606127
606608
606616
606619
606624
606644
618839
619477
619480
630405
646000
650195
673124
709575
710588
717025
717034
721748
724111
724190
734484
734673
742007
743817
753248
755375
756685
756863
757018
759555
759935
760721
761275
775751
775810
785370
788178
795140
795142
795593
796432
800028
800030
801542
802128
806084
818629
]
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 (383940 , 396952 , 401224 , 417736 , 419503 , 425976 , 428509 , 428531 , 428533 , 446085 , 453125 , 465520 , 466927 , 474146 , 480772 , 520945 , 538817 , 561005 , 569068 , 569198 , 584104 , 596960 , 602632 , 603610 , 603656 , 606059 , 606127 , 606608 , 606616 , 606619 , 606624 , 606644 , 618839 , 619477 , 619480 , 630405 , 646000 , 650195 , 673124 , 709575 , 710588 , 717025 , 717034 , 721748 , 724111 , 724190 , 734484 , 734673 , 742007 , 743817 , 753248 , 755375 , 756685 , 756863 , 757018 , 759555 , 759935 , 760721 , 761275 , 775751 , 775810 , 785370 , 788178 , 795140 , 795142 , 795593 , 796432 , 800028 , 800030 , 801542 , 802128 , 806084 , 818629 );
Copy
5
79.35 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
383940
396952
401224
417736
419503
425976
428509
428531
428533
446085
453125
465520
466927
474146
480772
520945
538817
561005
569068
569198
584104
596960
602632
603610
603656
606059
606127
606608
606616
606619
606624
606644
618839
619477
619480
630405
646000
650195
673124
709575
710588
717025
717034
721748
724111
724190
734484
734673
742007
743817
753248
755375
756685
756863
757018
759555
759935
760721
761275
775751
775810
785370
788178
795140
795142
795593
796432
800028
800030
801542
802128
806084
818629
]
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 (383940 , 396952 , 401224 , 417736 , 419503 , 425976 , 428509 , 428531 , 428533 , 446085 , 453125 , 465520 , 466927 , 474146 , 480772 , 520945 , 538817 , 561005 , 569068 , 569198 , 584104 , 596960 , 602632 , 603610 , 603656 , 606059 , 606127 , 606608 , 606616 , 606619 , 606624 , 606644 , 618839 , 619477 , 619480 , 630405 , 646000 , 650195 , 673124 , 709575 , 710588 , 717025 , 717034 , 721748 , 724111 , 724190 , 734484 , 734673 , 742007 , 743817 , 753248 , 755375 , 756685 , 756863 , 757018 , 759555 , 759935 , 760721 , 761275 , 775751 , 775810 , 785370 , 788178 , 795140 , 795142 , 795593 , 796432 , 800028 , 800030 , 801542 , 802128 , 806084 , 818629 );
Copy