3
13.29 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
555055
544468
646176
639796
817878
544617
544871
554725
555296
807881
802315
712174
710265
555220
639637
803960
752840
710471
801326
454292
555395
542285
559924
649306
680937
653513
664166
670266
554704
618301
596244
793671
796577
803450
748154
768157
647860
499904
555360
681251
710221
712311
586218
636111
607050
795723
706286
546048
618622
585050
552938
625801
746686
541575
714119
555616
591487
579707
571135
544366
546993
666904
651599
614858
541699
541888
641978
]
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 (555055 , 544468 , 646176 , 639796 , 817878 , 544617 , 544871 , 554725 , 555296 , 807881 , 802315 , 712174 , 710265 , 555220 , 639637 , 803960 , 752840 , 710471 , 801326 , 454292 , 555395 , 542285 , 559924 , 649306 , 680937 , 653513 , 664166 , 670266 , 554704 , 618301 , 596244 , 793671 , 796577 , 803450 , 748154 , 768157 , 647860 , 499904 , 555360 , 681251 , 710221 , 712311 , 586218 , 636111 , 607050 , 795723 , 706286 , 546048 , 618622 , 585050 , 552938 , 625801 , 746686 , 541575 , 714119 , 555616 , 591487 , 579707 , 571135 , 544366 , 546993 , 666904 , 651599 , 614858 , 541699 , 541888 , 641978 );
Copy
4
3.93 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
454292
499904
541575
541699
541888
542285
544366
544468
544617
544871
546048
546993
552938
554704
554725
555055
555220
555296
555360
555395
555616
559924
571135
579707
585050
586218
591487
596244
607050
614858
618301
618622
625801
636111
639637
639796
641978
646176
647860
649306
651599
653513
664166
666904
670266
680937
681251
706286
710221
710265
710471
712174
712311
714119
746686
748154
752840
768157
793671
795723
796577
801326
802315
803450
803960
807881
817878
]
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 (454292 , 499904 , 541575 , 541699 , 541888 , 542285 , 544366 , 544468 , 544617 , 544871 , 546048 , 546993 , 552938 , 554704 , 554725 , 555055 , 555220 , 555296 , 555360 , 555395 , 555616 , 559924 , 571135 , 579707 , 585050 , 586218 , 591487 , 596244 , 607050 , 614858 , 618301 , 618622 , 625801 , 636111 , 639637 , 639796 , 641978 , 646176 , 647860 , 649306 , 651599 , 653513 , 664166 , 666904 , 670266 , 680937 , 681251 , 706286 , 710221 , 710265 , 710471 , 712174 , 712311 , 714119 , 746686 , 748154 , 752840 , 768157 , 793671 , 795723 , 796577 , 801326 , 802315 , 803450 , 803960 , 807881 , 817878 );
Copy
5
117.45 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
454292
499904
541575
541699
541888
542285
544366
544468
544617
544871
546048
546993
552938
554704
554725
555055
555220
555296
555360
555395
555616
559924
571135
579707
585050
586218
591487
596244
607050
614858
618301
618622
625801
636111
639637
639796
641978
646176
647860
649306
651599
653513
664166
666904
670266
680937
681251
706286
710221
710265
710471
712174
712311
714119
746686
748154
752840
768157
793671
795723
796577
801326
802315
803450
803960
807881
817878
]
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 (454292 , 499904 , 541575 , 541699 , 541888 , 542285 , 544366 , 544468 , 544617 , 544871 , 546048 , 546993 , 552938 , 554704 , 554725 , 555055 , 555220 , 555296 , 555360 , 555395 , 555616 , 559924 , 571135 , 579707 , 585050 , 586218 , 591487 , 596244 , 607050 , 614858 , 618301 , 618622 , 625801 , 636111 , 639637 , 639796 , 641978 , 646176 , 647860 , 649306 , 651599 , 653513 , 664166 , 666904 , 670266 , 680937 , 681251 , 706286 , 710221 , 710265 , 710471 , 712174 , 712311 , 714119 , 746686 , 748154 , 752840 , 768157 , 793671 , 795723 , 796577 , 801326 , 802315 , 803450 , 803960 , 807881 , 817878 );
Copy