3
12.87 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
743684
635270
628535
548301
553697
818540
826073
828817
542721
797230
540136
666087
775212
826956
641778
540675
801530
540081
710478
542431
547411
686265
661035
567639
630572
811360
814276
627927
635283
767482
746616
758292
788979
701509
667944
744938
826295
662480
629820
722966
544234
678662
799435
758448
612553
469195
555410
554722
586926
627810
788887
613851
637120
598658
619455
736770
627803
542425
580398
546215
545601
702927
593855
548226
]
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 (743684 , 635270 , 628535 , 548301 , 553697 , 818540 , 826073 , 828817 , 542721 , 797230 , 540136 , 666087 , 775212 , 826956 , 641778 , 540675 , 801530 , 540081 , 710478 , 542431 , 547411 , 686265 , 661035 , 567639 , 630572 , 811360 , 814276 , 627927 , 635283 , 767482 , 746616 , 758292 , 788979 , 701509 , 667944 , 744938 , 826295 , 662480 , 629820 , 722966 , 544234 , 678662 , 799435 , 758448 , 612553 , 469195 , 555410 , 554722 , 586926 , 627810 , 788887 , 613851 , 637120 , 598658 , 619455 , 736770 , 627803 , 542425 , 580398 , 546215 , 545601 , 702927 , 593855 , 548226 );
Copy
4
2.18 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
469195
540081
540136
540675
542425
542431
542721
544234
545601
546215
547411
548226
548301
553697
554722
555410
567639
580398
586926
593855
598658
612553
613851
619455
627803
627810
627927
628535
629820
630572
635270
635283
637120
641778
661035
662480
666087
667944
678662
686265
701509
702927
710478
722966
736770
743684
744938
746616
758292
758448
767482
775212
788887
788979
797230
799435
801530
811360
814276
818540
826073
826295
826956
828817
]
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 (469195 , 540081 , 540136 , 540675 , 542425 , 542431 , 542721 , 544234 , 545601 , 546215 , 547411 , 548226 , 548301 , 553697 , 554722 , 555410 , 567639 , 580398 , 586926 , 593855 , 598658 , 612553 , 613851 , 619455 , 627803 , 627810 , 627927 , 628535 , 629820 , 630572 , 635270 , 635283 , 637120 , 641778 , 661035 , 662480 , 666087 , 667944 , 678662 , 686265 , 701509 , 702927 , 710478 , 722966 , 736770 , 743684 , 744938 , 746616 , 758292 , 758448 , 767482 , 775212 , 788887 , 788979 , 797230 , 799435 , 801530 , 811360 , 814276 , 818540 , 826073 , 826295 , 826956 , 828817 );
Copy
5
79.22 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
469195
540081
540136
540675
542425
542431
542721
544234
545601
546215
547411
548226
548301
553697
554722
555410
567639
580398
586926
593855
598658
612553
613851
619455
627803
627810
627927
628535
629820
630572
635270
635283
637120
641778
661035
662480
666087
667944
678662
686265
701509
702927
710478
722966
736770
743684
744938
746616
758292
758448
767482
775212
788887
788979
797230
799435
801530
811360
814276
818540
826073
826295
826956
828817
]
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 (469195 , 540081 , 540136 , 540675 , 542425 , 542431 , 542721 , 544234 , 545601 , 546215 , 547411 , 548226 , 548301 , 553697 , 554722 , 555410 , 567639 , 580398 , 586926 , 593855 , 598658 , 612553 , 613851 , 619455 , 627803 , 627810 , 627927 , 628535 , 629820 , 630572 , 635270 , 635283 , 637120 , 641778 , 661035 , 662480 , 666087 , 667944 , 678662 , 686265 , 701509 , 702927 , 710478 , 722966 , 736770 , 743684 , 744938 , 746616 , 758292 , 758448 , 767482 , 775212 , 788887 , 788979 , 797230 , 799435 , 801530 , 811360 , 814276 , 818540 , 826073 , 826295 , 826956 , 828817 );
Copy