3
8.37 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
543293
544700
543236
522412
578726
543264
542345
688267
575027
550241
575043
660430
650676
550247
635183
629375
650681
660779
458567
687608
621534
544626
543359
542270
710278
576869
622916
522432
542302
543453
622912
622930
618751
543172
541855
457384
567594
660836
615400
618756
749608
542295
543272
550246
543196
622929
812266
769878
550240
457393
543431
556927
483262
460631
538590
521565
543238
543036
681211
622911
602293
535435
543204
584632
565922
556976
577074
591859
606820
543217
543456
543259
619816
543508
494764
]
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 (543293 , 544700 , 543236 , 522412 , 578726 , 543264 , 542345 , 688267 , 575027 , 550241 , 575043 , 660430 , 650676 , 550247 , 635183 , 629375 , 650681 , 660779 , 458567 , 687608 , 621534 , 544626 , 543359 , 542270 , 710278 , 576869 , 622916 , 522432 , 542302 , 543453 , 622912 , 622930 , 618751 , 543172 , 541855 , 457384 , 567594 , 660836 , 615400 , 618756 , 749608 , 542295 , 543272 , 550246 , 543196 , 622929 , 812266 , 769878 , 550240 , 457393 , 543431 , 556927 , 483262 , 460631 , 538590 , 521565 , 543238 , 543036 , 681211 , 622911 , 602293 , 535435 , 543204 , 584632 , 565922 , 556976 , 577074 , 591859 , 606820 , 543217 , 543456 , 543259 , 619816 , 543508 , 494764 );
Copy
4
2.27 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
457384
457393
458567
460631
483262
494764
521565
522412
522432
535435
538590
541855
542270
542295
542302
542345
543036
543172
543196
543204
543217
543236
543238
543259
543264
543272
543293
543359
543431
543453
543456
543508
544626
544700
550240
550241
550246
550247
556927
556976
565922
567594
575027
575043
576869
577074
578726
584632
591859
602293
606820
615400
618751
618756
619816
621534
622911
622912
622916
622929
622930
629375
635183
650676
650681
660430
660779
660836
681211
687608
688267
710278
749608
769878
812266
]
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 (457384 , 457393 , 458567 , 460631 , 483262 , 494764 , 521565 , 522412 , 522432 , 535435 , 538590 , 541855 , 542270 , 542295 , 542302 , 542345 , 543036 , 543172 , 543196 , 543204 , 543217 , 543236 , 543238 , 543259 , 543264 , 543272 , 543293 , 543359 , 543431 , 543453 , 543456 , 543508 , 544626 , 544700 , 550240 , 550241 , 550246 , 550247 , 556927 , 556976 , 565922 , 567594 , 575027 , 575043 , 576869 , 577074 , 578726 , 584632 , 591859 , 602293 , 606820 , 615400 , 618751 , 618756 , 619816 , 621534 , 622911 , 622912 , 622916 , 622929 , 622930 , 629375 , 635183 , 650676 , 650681 , 660430 , 660779 , 660836 , 681211 , 687608 , 688267 , 710278 , 749608 , 769878 , 812266 );
Copy
5
171.79 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
457384
457393
458567
460631
483262
494764
521565
522412
522432
535435
538590
541855
542270
542295
542302
542345
543036
543172
543196
543204
543217
543236
543238
543259
543264
543272
543293
543359
543431
543453
543456
543508
544626
544700
550240
550241
550246
550247
556927
556976
565922
567594
575027
575043
576869
577074
578726
584632
591859
602293
606820
615400
618751
618756
619816
621534
622911
622912
622916
622929
622930
629375
635183
650676
650681
660430
660779
660836
681211
687608
688267
710278
749608
769878
812266
]
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 (457384 , 457393 , 458567 , 460631 , 483262 , 494764 , 521565 , 522412 , 522432 , 535435 , 538590 , 541855 , 542270 , 542295 , 542302 , 542345 , 543036 , 543172 , 543196 , 543204 , 543217 , 543236 , 543238 , 543259 , 543264 , 543272 , 543293 , 543359 , 543431 , 543453 , 543456 , 543508 , 544626 , 544700 , 550240 , 550241 , 550246 , 550247 , 556927 , 556976 , 565922 , 567594 , 575027 , 575043 , 576869 , 577074 , 578726 , 584632 , 591859 , 602293 , 606820 , 615400 , 618751 , 618756 , 619816 , 621534 , 622911 , 622912 , 622916 , 622929 , 622930 , 629375 , 635183 , 650676 , 650681 , 660430 , 660779 , 660836 , 681211 , 687608 , 688267 , 710278 , 749608 , 769878 , 812266 );
Copy