3
9.49 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
826666
812276
521449
603972
799531
622613
817939
820558
828138
491244
812284
819102
820444
671204
813335
550017
661029
732789
740944
750510
779522
821549
521013
697324
719431
736707
762205
775815
778273
501904
827668
560576
804443
22984
815456
577048
592287
704644
398715
523010
518932
559343
545017
552034
618725
813043
560743
563439
661031
608605
740694
808466
396534
440907
814501
460172
559345
559356
558683
595611
724613
736180
427561
788209
518899
500830
581665
517004
510767
]
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 (826666 , 812276 , 521449 , 603972 , 799531 , 622613 , 817939 , 820558 , 828138 , 491244 , 812284 , 819102 , 820444 , 671204 , 813335 , 550017 , 661029 , 732789 , 740944 , 750510 , 779522 , 821549 , 521013 , 697324 , 719431 , 736707 , 762205 , 775815 , 778273 , 501904 , 827668 , 560576 , 804443 , 22984 , 815456 , 577048 , 592287 , 704644 , 398715 , 523010 , 518932 , 559343 , 545017 , 552034 , 618725 , 813043 , 560743 , 563439 , 661031 , 608605 , 740694 , 808466 , 396534 , 440907 , 814501 , 460172 , 559345 , 559356 , 558683 , 595611 , 724613 , 736180 , 427561 , 788209 , 518899 , 500830 , 581665 , 517004 , 510767 );
Copy
4
2.36 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
22984
396534
398715
427561
440907
460172
491244
500830
501904
510767
517004
518899
518932
521013
521449
523010
545017
550017
552034
558683
559343
559345
559356
560576
560743
563439
577048
581665
592287
595611
603972
608605
618725
622613
661029
661031
671204
697324
704644
719431
724613
732789
736180
736707
740694
740944
750510
762205
775815
778273
779522
788209
799531
804443
808466
812276
812284
813043
813335
814501
815456
817939
819102
820444
820558
821549
827668
828138
]
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 (22984 , 396534 , 398715 , 427561 , 440907 , 460172 , 491244 , 500830 , 501904 , 510767 , 517004 , 518899 , 518932 , 521013 , 521449 , 523010 , 545017 , 550017 , 552034 , 558683 , 559343 , 559345 , 559356 , 560576 , 560743 , 563439 , 577048 , 581665 , 592287 , 595611 , 603972 , 608605 , 618725 , 622613 , 661029 , 661031 , 671204 , 697324 , 704644 , 719431 , 724613 , 732789 , 736180 , 736707 , 740694 , 740944 , 750510 , 762205 , 775815 , 778273 , 779522 , 788209 , 799531 , 804443 , 808466 , 812276 , 812284 , 813043 , 813335 , 814501 , 815456 , 817939 , 819102 , 820444 , 820558 , 821549 , 827668 , 828138 );
Copy
5
88.95 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
22984
396534
398715
427561
440907
460172
491244
500830
501904
510767
517004
518899
518932
521013
521449
523010
545017
550017
552034
558683
559343
559345
559356
560576
560743
563439
577048
581665
592287
595611
603972
608605
618725
622613
661029
661031
671204
697324
704644
719431
724613
732789
736180
736707
740694
740944
750510
762205
775815
778273
779522
788209
799531
804443
808466
812276
812284
813043
813335
814501
815456
817939
819102
820444
820558
821549
827668
828138
]
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 (22984 , 396534 , 398715 , 427561 , 440907 , 460172 , 491244 , 500830 , 501904 , 510767 , 517004 , 518899 , 518932 , 521013 , 521449 , 523010 , 545017 , 550017 , 552034 , 558683 , 559343 , 559345 , 559356 , 560576 , 560743 , 563439 , 577048 , 581665 , 592287 , 595611 , 603972 , 608605 , 618725 , 622613 , 661029 , 661031 , 671204 , 697324 , 704644 , 719431 , 724613 , 732789 , 736180 , 736707 , 740694 , 740944 , 750510 , 762205 , 775815 , 778273 , 779522 , 788209 , 799531 , 804443 , 808466 , 812276 , 812284 , 813043 , 813335 , 814501 , 815456 , 817939 , 819102 , 820444 , 820558 , 821549 , 827668 , 828138 );
Copy