4
12.05 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
623198
417324
460706
473735
448811
478527
499817
417829
585139
448817
457160
522147
516291
536645
539232
583714
559948
576720
631984
604528
634153
605449
745384
632635
419403
414075
496270
520775
521089
620205
527273
485149
517184
527106
564596
556037
647932
647972
665768
634115
639798
639716
415883
492064
448810
455898
508518
560197
545611
547241
559959
566786
546861
639732
634780
603907
449123
527611
531560
489328
506612
533746
545614
557236
603813
483550
496033
558432
]
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 (623198 , 417324 , 460706 , 473735 , 448811 , 478527 , 499817 , 417829 , 585139 , 448817 , 457160 , 522147 , 516291 , 536645 , 539232 , 583714 , 559948 , 576720 , 631984 , 604528 , 634153 , 605449 , 745384 , 632635 , 419403 , 414075 , 496270 , 520775 , 521089 , 620205 , 527273 , 485149 , 517184 , 527106 , 564596 , 556037 , 647932 , 647972 , 665768 , 634115 , 639798 , 639716 , 415883 , 492064 , 448810 , 455898 , 508518 , 560197 , 545611 , 547241 , 559959 , 566786 , 546861 , 639732 , 634780 , 603907 , 449123 , 527611 , 531560 , 489328 , 506612 , 533746 , 545614 , 557236 , 603813 , 483550 , 496033 , 558432 );
Copy
5
2.73 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
414075
415883
417324
417829
419403
448810
448811
448817
449123
455898
457160
460706
473735
478527
483550
485149
489328
492064
496033
496270
499817
506612
508518
516291
517184
520775
521089
522147
527106
527273
527611
531560
533746
536645
539232
545611
545614
546861
547241
556037
557236
558432
559948
559959
560197
564596
566786
576720
583714
585139
603813
603907
604528
605449
620205
623198
631984
632635
634115
634153
634780
639716
639732
639798
647932
647972
665768
745384
]
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 (414075 , 415883 , 417324 , 417829 , 419403 , 448810 , 448811 , 448817 , 449123 , 455898 , 457160 , 460706 , 473735 , 478527 , 483550 , 485149 , 489328 , 492064 , 496033 , 496270 , 499817 , 506612 , 508518 , 516291 , 517184 , 520775 , 521089 , 522147 , 527106 , 527273 , 527611 , 531560 , 533746 , 536645 , 539232 , 545611 , 545614 , 546861 , 547241 , 556037 , 557236 , 558432 , 559948 , 559959 , 560197 , 564596 , 566786 , 576720 , 583714 , 585139 , 603813 , 603907 , 604528 , 605449 , 620205 , 623198 , 631984 , 632635 , 634115 , 634153 , 634780 , 639716 , 639732 , 639798 , 647932 , 647972 , 665768 , 745384 );
Copy
6
87.48 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
414075
415883
417324
417829
419403
448810
448811
448817
449123
455898
457160
460706
473735
478527
483550
485149
489328
492064
496033
496270
499817
506612
508518
516291
517184
520775
521089
522147
527106
527273
527611
531560
533746
536645
539232
545611
545614
546861
547241
556037
557236
558432
559948
559959
560197
564596
566786
576720
583714
585139
603813
603907
604528
605449
620205
623198
631984
632635
634115
634153
634780
639716
639732
639798
647932
647972
665768
745384
]
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 (414075 , 415883 , 417324 , 417829 , 419403 , 448810 , 448811 , 448817 , 449123 , 455898 , 457160 , 460706 , 473735 , 478527 , 483550 , 485149 , 489328 , 492064 , 496033 , 496270 , 499817 , 506612 , 508518 , 516291 , 517184 , 520775 , 521089 , 522147 , 527106 , 527273 , 527611 , 531560 , 533746 , 536645 , 539232 , 545611 , 545614 , 546861 , 547241 , 556037 , 557236 , 558432 , 559948 , 559959 , 560197 , 564596 , 566786 , 576720 , 583714 , 585139 , 603813 , 603907 , 604528 , 605449 , 620205 , 623198 , 631984 , 632635 , 634115 , 634153 , 634780 , 639716 , 639732 , 639798 , 647932 , 647972 , 665768 , 745384 );
Copy