3
9.94 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
544002
760392
816672
550544
563971
745389
740265
746697
389278
825446
577057
740775
824859
666116
669267
801813
801836
740727
750507
812062
818722
547684
544876
629609
748028
742113
750470
750510
545149
577175
629544
601791
812050
825333
538474
529848
559342
650649
666114
661580
757516
559358
650596
666120
669250
750514
749516
712082
650666
749486
493283
602993
760381
749520
533291
528816
716965
561345
557438
527889
602562
615145
533289
]
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 (544002 , 760392 , 816672 , 550544 , 563971 , 745389 , 740265 , 746697 , 389278 , 825446 , 577057 , 740775 , 824859 , 666116 , 669267 , 801813 , 801836 , 740727 , 750507 , 812062 , 818722 , 547684 , 544876 , 629609 , 748028 , 742113 , 750470 , 750510 , 545149 , 577175 , 629544 , 601791 , 812050 , 825333 , 538474 , 529848 , 559342 , 650649 , 666114 , 661580 , 757516 , 559358 , 650596 , 666120 , 669250 , 750514 , 749516 , 712082 , 650666 , 749486 , 493283 , 602993 , 760381 , 749520 , 533291 , 528816 , 716965 , 561345 , 557438 , 527889 , 602562 , 615145 , 533289 );
Copy
4
2.07 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
389278
493283
527889
528816
529848
533289
533291
538474
544002
544876
545149
547684
550544
557438
559342
559358
561345
563971
577057
577175
601791
602562
602993
615145
629544
629609
650596
650649
650666
661580
666114
666116
666120
669250
669267
712082
716965
740265
740727
740775
742113
745389
746697
748028
749486
749516
749520
750470
750507
750510
750514
757516
760381
760392
801813
801836
812050
812062
816672
818722
824859
825333
825446
]
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 (389278 , 493283 , 527889 , 528816 , 529848 , 533289 , 533291 , 538474 , 544002 , 544876 , 545149 , 547684 , 550544 , 557438 , 559342 , 559358 , 561345 , 563971 , 577057 , 577175 , 601791 , 602562 , 602993 , 615145 , 629544 , 629609 , 650596 , 650649 , 650666 , 661580 , 666114 , 666116 , 666120 , 669250 , 669267 , 712082 , 716965 , 740265 , 740727 , 740775 , 742113 , 745389 , 746697 , 748028 , 749486 , 749516 , 749520 , 750470 , 750507 , 750510 , 750514 , 757516 , 760381 , 760392 , 801813 , 801836 , 812050 , 812062 , 816672 , 818722 , 824859 , 825333 , 825446 );
Copy
5
111.96 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
389278
493283
527889
528816
529848
533289
533291
538474
544002
544876
545149
547684
550544
557438
559342
559358
561345
563971
577057
577175
601791
602562
602993
615145
629544
629609
650596
650649
650666
661580
666114
666116
666120
669250
669267
712082
716965
740265
740727
740775
742113
745389
746697
748028
749486
749516
749520
750470
750507
750510
750514
757516
760381
760392
801813
801836
812050
812062
816672
818722
824859
825333
825446
]
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 (389278 , 493283 , 527889 , 528816 , 529848 , 533289 , 533291 , 538474 , 544002 , 544876 , 545149 , 547684 , 550544 , 557438 , 559342 , 559358 , 561345 , 563971 , 577057 , 577175 , 601791 , 602562 , 602993 , 615145 , 629544 , 629609 , 650596 , 650649 , 650666 , 661580 , 666114 , 666116 , 666120 , 669250 , 669267 , 712082 , 716965 , 740265 , 740727 , 740775 , 742113 , 745389 , 746697 , 748028 , 749486 , 749516 , 749520 , 750470 , 750507 , 750510 , 750514 , 757516 , 760381 , 760392 , 801813 , 801836 , 812050 , 812062 , 816672 , 818722 , 824859 , 825333 , 825446 );
Copy