3
8.33 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
381805
822827
819710
645447
556262
794865
768187
712273
761265
22843
807932
719347
767306
750402
649785
517758
792015
817022
808981
573326
720767
571390
796332
518772
788405
589979
733090
754086
757955
455109
415093
494482
432335
652131
501622
602069
415718
740407
491595
812429
455419
540992
541840
459801
727633
447848
577896
468119
516883
491170
446353
480437
576033
784871
469569
522995
716540
510851
451753
460450
616315
571724
606017
544686
606002
]
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 (381805 , 822827 , 819710 , 645447 , 556262 , 794865 , 768187 , 712273 , 761265 , 22843 , 807932 , 719347 , 767306 , 750402 , 649785 , 517758 , 792015 , 817022 , 808981 , 573326 , 720767 , 571390 , 796332 , 518772 , 788405 , 589979 , 733090 , 754086 , 757955 , 455109 , 415093 , 494482 , 432335 , 652131 , 501622 , 602069 , 415718 , 740407 , 491595 , 812429 , 455419 , 540992 , 541840 , 459801 , 727633 , 447848 , 577896 , 468119 , 516883 , 491170 , 446353 , 480437 , 576033 , 784871 , 469569 , 522995 , 716540 , 510851 , 451753 , 460450 , 616315 , 571724 , 606017 , 544686 , 606002 );
Copy
4
1.99 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
22843
381805
415093
415718
432335
446353
447848
451753
455109
455419
459801
460450
468119
469569
480437
491170
491595
494482
501622
510851
516883
517758
518772
522995
540992
541840
544686
556262
571390
571724
573326
576033
577896
589979
602069
606002
606017
616315
645447
649785
652131
712273
716540
719347
720767
727633
733090
740407
750402
754086
757955
761265
767306
768187
784871
788405
792015
794865
796332
807932
808981
812429
817022
819710
822827
]
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 (22843 , 381805 , 415093 , 415718 , 432335 , 446353 , 447848 , 451753 , 455109 , 455419 , 459801 , 460450 , 468119 , 469569 , 480437 , 491170 , 491595 , 494482 , 501622 , 510851 , 516883 , 517758 , 518772 , 522995 , 540992 , 541840 , 544686 , 556262 , 571390 , 571724 , 573326 , 576033 , 577896 , 589979 , 602069 , 606002 , 606017 , 616315 , 645447 , 649785 , 652131 , 712273 , 716540 , 719347 , 720767 , 727633 , 733090 , 740407 , 750402 , 754086 , 757955 , 761265 , 767306 , 768187 , 784871 , 788405 , 792015 , 794865 , 796332 , 807932 , 808981 , 812429 , 817022 , 819710 , 822827 );
Copy
5
67.03 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
22843
381805
415093
415718
432335
446353
447848
451753
455109
455419
459801
460450
468119
469569
480437
491170
491595
494482
501622
510851
516883
517758
518772
522995
540992
541840
544686
556262
571390
571724
573326
576033
577896
589979
602069
606002
606017
616315
645447
649785
652131
712273
716540
719347
720767
727633
733090
740407
750402
754086
757955
761265
767306
768187
784871
788405
792015
794865
796332
807932
808981
812429
817022
819710
822827
]
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 (22843 , 381805 , 415093 , 415718 , 432335 , 446353 , 447848 , 451753 , 455109 , 455419 , 459801 , 460450 , 468119 , 469569 , 480437 , 491170 , 491595 , 494482 , 501622 , 510851 , 516883 , 517758 , 518772 , 522995 , 540992 , 541840 , 544686 , 556262 , 571390 , 571724 , 573326 , 576033 , 577896 , 589979 , 602069 , 606002 , 606017 , 616315 , 645447 , 649785 , 652131 , 712273 , 716540 , 719347 , 720767 , 727633 , 733090 , 740407 , 750402 , 754086 , 757955 , 761265 , 767306 , 768187 , 784871 , 788405 , 792015 , 794865 , 796332 , 807932 , 808981 , 812429 , 817022 , 819710 , 822827 );
Copy