3
15.54 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
558072
588007
447706
206202
811934
563884
712208
701187
677156
759861
802435
397397
348409
438312
399622
370905
212893
452832
596288
471966
546690
390854
465088
805832
544274
486801
780619
563209
725520
392066
504640
560240
534333
729926
473247
402931
456137
518722
490729
443149
472889
568320
564601
575097
776130
503530
481359
519705
503314
486673
518319
481855
512620
444135
619772
463772
565700
443083
428771
453132
470779
440652
411703
525118
548596
544529
571806
563887
649080
487072
499598
486665
572014
495199
590866
]
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 (558072 , 588007 , 447706 , 206202 , 811934 , 563884 , 712208 , 701187 , 677156 , 759861 , 802435 , 397397 , 348409 , 438312 , 399622 , 370905 , 212893 , 452832 , 596288 , 471966 , 546690 , 390854 , 465088 , 805832 , 544274 , 486801 , 780619 , 563209 , 725520 , 392066 , 504640 , 560240 , 534333 , 729926 , 473247 , 402931 , 456137 , 518722 , 490729 , 443149 , 472889 , 568320 , 564601 , 575097 , 776130 , 503530 , 481359 , 519705 , 503314 , 486673 , 518319 , 481855 , 512620 , 444135 , 619772 , 463772 , 565700 , 443083 , 428771 , 453132 , 470779 , 440652 , 411703 , 525118 , 548596 , 544529 , 571806 , 563887 , 649080 , 487072 , 499598 , 486665 , 572014 , 495199 , 590866 );
Copy
4
3.16 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
206202
212893
348409
370905
390854
392066
397397
399622
402931
411703
428771
438312
440652
443083
443149
444135
447706
452832
453132
456137
463772
465088
470779
471966
472889
473247
481359
481855
486665
486673
486801
487072
490729
495199
499598
503314
503530
504640
512620
518319
518722
519705
525118
534333
544274
544529
546690
548596
558072
560240
563209
563884
563887
564601
565700
568320
571806
572014
575097
588007
590866
596288
619772
649080
677156
701187
712208
725520
729926
759861
776130
780619
802435
805832
811934
]
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 (206202 , 212893 , 348409 , 370905 , 390854 , 392066 , 397397 , 399622 , 402931 , 411703 , 428771 , 438312 , 440652 , 443083 , 443149 , 444135 , 447706 , 452832 , 453132 , 456137 , 463772 , 465088 , 470779 , 471966 , 472889 , 473247 , 481359 , 481855 , 486665 , 486673 , 486801 , 487072 , 490729 , 495199 , 499598 , 503314 , 503530 , 504640 , 512620 , 518319 , 518722 , 519705 , 525118 , 534333 , 544274 , 544529 , 546690 , 548596 , 558072 , 560240 , 563209 , 563884 , 563887 , 564601 , 565700 , 568320 , 571806 , 572014 , 575097 , 588007 , 590866 , 596288 , 619772 , 649080 , 677156 , 701187 , 712208 , 725520 , 729926 , 759861 , 776130 , 780619 , 802435 , 805832 , 811934 );
Copy
5
113.50 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
206202
212893
348409
370905
390854
392066
397397
399622
402931
411703
428771
438312
440652
443083
443149
444135
447706
452832
453132
456137
463772
465088
470779
471966
472889
473247
481359
481855
486665
486673
486801
487072
490729
495199
499598
503314
503530
504640
512620
518319
518722
519705
525118
534333
544274
544529
546690
548596
558072
560240
563209
563884
563887
564601
565700
568320
571806
572014
575097
588007
590866
596288
619772
649080
677156
701187
712208
725520
729926
759861
776130
780619
802435
805832
811934
]
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 (206202 , 212893 , 348409 , 370905 , 390854 , 392066 , 397397 , 399622 , 402931 , 411703 , 428771 , 438312 , 440652 , 443083 , 443149 , 444135 , 447706 , 452832 , 453132 , 456137 , 463772 , 465088 , 470779 , 471966 , 472889 , 473247 , 481359 , 481855 , 486665 , 486673 , 486801 , 487072 , 490729 , 495199 , 499598 , 503314 , 503530 , 504640 , 512620 , 518319 , 518722 , 519705 , 525118 , 534333 , 544274 , 544529 , 546690 , 548596 , 558072 , 560240 , 563209 , 563884 , 563887 , 564601 , 565700 , 568320 , 571806 , 572014 , 575097 , 588007 , 590866 , 596288 , 619772 , 649080 , 677156 , 701187 , 712208 , 725520 , 729926 , 759861 , 776130 , 780619 , 802435 , 805832 , 811934 );
Copy