3
10.00 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
817489
580269
638278
536022
745040
534710
533941
638238
581600
714341
735408
517913
601010
638346
514699
638590
486730
638360
638631
638658
790742
638344
746442
573463
725508
540395
580266
618965
820677
574926
406820
818732
500598
396316
614741
818777
557548
460162
52231
745929
719907
478100
413991
530317
444386
461422
554776
478675
773217
472131
638298
685646
812779
787443
472134
520665
612044
484252
451221
510675
520461
554769
823486
454467
496593
551539
]
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 (817489 , 580269 , 638278 , 536022 , 745040 , 534710 , 533941 , 638238 , 581600 , 714341 , 735408 , 517913 , 601010 , 638346 , 514699 , 638590 , 486730 , 638360 , 638631 , 638658 , 790742 , 638344 , 746442 , 573463 , 725508 , 540395 , 580266 , 618965 , 820677 , 574926 , 406820 , 818732 , 500598 , 396316 , 614741 , 818777 , 557548 , 460162 , 52231 , 745929 , 719907 , 478100 , 413991 , 530317 , 444386 , 461422 , 554776 , 478675 , 773217 , 472131 , 638298 , 685646 , 812779 , 787443 , 472134 , 520665 , 612044 , 484252 , 451221 , 510675 , 520461 , 554769 , 823486 , 454467 , 496593 , 551539 );
Copy
4
2.35 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
52231
396316
406820
413991
444386
451221
454467
460162
461422
472131
472134
478100
478675
484252
486730
496593
500598
510675
514699
517913
520461
520665
530317
533941
534710
536022
540395
551539
554769
554776
557548
573463
574926
580266
580269
581600
601010
612044
614741
618965
638238
638278
638298
638344
638346
638360
638590
638631
638658
685646
714341
719907
725508
735408
745040
745929
746442
773217
787443
790742
812779
817489
818732
818777
820677
823486
]
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 (52231 , 396316 , 406820 , 413991 , 444386 , 451221 , 454467 , 460162 , 461422 , 472131 , 472134 , 478100 , 478675 , 484252 , 486730 , 496593 , 500598 , 510675 , 514699 , 517913 , 520461 , 520665 , 530317 , 533941 , 534710 , 536022 , 540395 , 551539 , 554769 , 554776 , 557548 , 573463 , 574926 , 580266 , 580269 , 581600 , 601010 , 612044 , 614741 , 618965 , 638238 , 638278 , 638298 , 638344 , 638346 , 638360 , 638590 , 638631 , 638658 , 685646 , 714341 , 719907 , 725508 , 735408 , 745040 , 745929 , 746442 , 773217 , 787443 , 790742 , 812779 , 817489 , 818732 , 818777 , 820677 , 823486 );
Copy
5
83.60 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
52231
396316
406820
413991
444386
451221
454467
460162
461422
472131
472134
478100
478675
484252
486730
496593
500598
510675
514699
517913
520461
520665
530317
533941
534710
536022
540395
551539
554769
554776
557548
573463
574926
580266
580269
581600
601010
612044
614741
618965
638238
638278
638298
638344
638346
638360
638590
638631
638658
685646
714341
719907
725508
735408
745040
745929
746442
773217
787443
790742
812779
817489
818732
818777
820677
823486
]
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 (52231 , 396316 , 406820 , 413991 , 444386 , 451221 , 454467 , 460162 , 461422 , 472131 , 472134 , 478100 , 478675 , 484252 , 486730 , 496593 , 500598 , 510675 , 514699 , 517913 , 520461 , 520665 , 530317 , 533941 , 534710 , 536022 , 540395 , 551539 , 554769 , 554776 , 557548 , 573463 , 574926 , 580266 , 580269 , 581600 , 601010 , 612044 , 614741 , 618965 , 638238 , 638278 , 638298 , 638344 , 638346 , 638360 , 638590 , 638631 , 638658 , 685646 , 714341 , 719907 , 725508 , 735408 , 745040 , 745929 , 746442 , 773217 , 787443 , 790742 , 812779 , 817489 , 818732 , 818777 , 820677 , 823486 );
Copy