3
8.92 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
585885
528308
726108
746457
787741
763297
742765
529882
771235
525080
780146
460777
787766
623624
683504
787732
741853
657776
479743
474502
745914
483946
800109
769828
793123
525075
458909
796875
741856
552336
678934
768914
777279
591178
794619
733403
474880
671233
800930
616818
568961
507004
520792
685818
652182
469894
187903
521582
648740
569223
481354
590550
679142
809967
609630
446529
551256
528097
521786
495604
431960
583425
560665
556655
528030
490409
564686
500477
642662
582277
]
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 (585885 , 528308 , 726108 , 746457 , 787741 , 763297 , 742765 , 529882 , 771235 , 525080 , 780146 , 460777 , 787766 , 623624 , 683504 , 787732 , 741853 , 657776 , 479743 , 474502 , 745914 , 483946 , 800109 , 769828 , 793123 , 525075 , 458909 , 796875 , 741856 , 552336 , 678934 , 768914 , 777279 , 591178 , 794619 , 733403 , 474880 , 671233 , 800930 , 616818 , 568961 , 507004 , 520792 , 685818 , 652182 , 469894 , 187903 , 521582 , 648740 , 569223 , 481354 , 590550 , 679142 , 809967 , 609630 , 446529 , 551256 , 528097 , 521786 , 495604 , 431960 , 583425 , 560665 , 556655 , 528030 , 490409 , 564686 , 500477 , 642662 , 582277 );
Copy
4
2.56 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
187903
431960
446529
458909
460777
469894
474502
474880
479743
481354
483946
490409
495604
500477
507004
520792
521582
521786
525075
525080
528030
528097
528308
529882
551256
552336
556655
560665
564686
568961
569223
582277
583425
585885
590550
591178
609630
616818
623624
642662
648740
652182
657776
671233
678934
679142
683504
685818
726108
733403
741853
741856
742765
745914
746457
763297
768914
769828
771235
777279
780146
787732
787741
787766
793123
794619
796875
800109
800930
809967
]
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 (187903 , 431960 , 446529 , 458909 , 460777 , 469894 , 474502 , 474880 , 479743 , 481354 , 483946 , 490409 , 495604 , 500477 , 507004 , 520792 , 521582 , 521786 , 525075 , 525080 , 528030 , 528097 , 528308 , 529882 , 551256 , 552336 , 556655 , 560665 , 564686 , 568961 , 569223 , 582277 , 583425 , 585885 , 590550 , 591178 , 609630 , 616818 , 623624 , 642662 , 648740 , 652182 , 657776 , 671233 , 678934 , 679142 , 683504 , 685818 , 726108 , 733403 , 741853 , 741856 , 742765 , 745914 , 746457 , 763297 , 768914 , 769828 , 771235 , 777279 , 780146 , 787732 , 787741 , 787766 , 793123 , 794619 , 796875 , 800109 , 800930 , 809967 );
Copy
5
74.17 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
187903
431960
446529
458909
460777
469894
474502
474880
479743
481354
483946
490409
495604
500477
507004
520792
521582
521786
525075
525080
528030
528097
528308
529882
551256
552336
556655
560665
564686
568961
569223
582277
583425
585885
590550
591178
609630
616818
623624
642662
648740
652182
657776
671233
678934
679142
683504
685818
726108
733403
741853
741856
742765
745914
746457
763297
768914
769828
771235
777279
780146
787732
787741
787766
793123
794619
796875
800109
800930
809967
]
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 (187903 , 431960 , 446529 , 458909 , 460777 , 469894 , 474502 , 474880 , 479743 , 481354 , 483946 , 490409 , 495604 , 500477 , 507004 , 520792 , 521582 , 521786 , 525075 , 525080 , 528030 , 528097 , 528308 , 529882 , 551256 , 552336 , 556655 , 560665 , 564686 , 568961 , 569223 , 582277 , 583425 , 585885 , 590550 , 591178 , 609630 , 616818 , 623624 , 642662 , 648740 , 652182 , 657776 , 671233 , 678934 , 679142 , 683504 , 685818 , 726108 , 733403 , 741853 , 741856 , 742765 , 745914 , 746457 , 763297 , 768914 , 769828 , 771235 , 777279 , 780146 , 787732 , 787741 , 787766 , 793123 , 794619 , 796875 , 800109 , 800930 , 809967 );
Copy