4
16.34 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
508701
529313
495283
497104
501120
514106
525142
516099
550614
551745
558012
568576
570878
588078
425537
495694
512843
428451
506052
531407
584713
576645
678584
664632
612087
619777
629296
617040
626873
603759
600843
615746
609803
513680
504768
515602
521489
560217
559948
690093
586591
519930
523260
561828
565105
579732
563547
608242
622766
441039
446864
550615
565795
541642
553031
559959
560215
589574
611375
611416
609225
469424
528116
567188
561478
560391
617004
682252
614745
630993
566587
620085
]
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 (508701 , 529313 , 495283 , 497104 , 501120 , 514106 , 525142 , 516099 , 550614 , 551745 , 558012 , 568576 , 570878 , 588078 , 425537 , 495694 , 512843 , 428451 , 506052 , 531407 , 584713 , 576645 , 678584 , 664632 , 612087 , 619777 , 629296 , 617040 , 626873 , 603759 , 600843 , 615746 , 609803 , 513680 , 504768 , 515602 , 521489 , 560217 , 559948 , 690093 , 586591 , 519930 , 523260 , 561828 , 565105 , 579732 , 563547 , 608242 , 622766 , 441039 , 446864 , 550615 , 565795 , 541642 , 553031 , 559959 , 560215 , 589574 , 611375 , 611416 , 609225 , 469424 , 528116 , 567188 , 561478 , 560391 , 617004 , 682252 , 614745 , 630993 , 566587 , 620085 );
Copy
5
2.48 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
425537
428451
441039
446864
469424
495283
495694
497104
501120
504768
506052
508701
512843
513680
514106
515602
516099
519930
521489
523260
525142
528116
529313
531407
541642
550614
550615
551745
553031
558012
559948
559959
560215
560217
560391
561478
561828
563547
565105
565795
566587
567188
568576
570878
576645
579732
584713
586591
588078
589574
600843
603759
608242
609225
609803
611375
611416
612087
614745
615746
617004
617040
619777
620085
622766
626873
629296
630993
664632
678584
682252
690093
]
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 (425537 , 428451 , 441039 , 446864 , 469424 , 495283 , 495694 , 497104 , 501120 , 504768 , 506052 , 508701 , 512843 , 513680 , 514106 , 515602 , 516099 , 519930 , 521489 , 523260 , 525142 , 528116 , 529313 , 531407 , 541642 , 550614 , 550615 , 551745 , 553031 , 558012 , 559948 , 559959 , 560215 , 560217 , 560391 , 561478 , 561828 , 563547 , 565105 , 565795 , 566587 , 567188 , 568576 , 570878 , 576645 , 579732 , 584713 , 586591 , 588078 , 589574 , 600843 , 603759 , 608242 , 609225 , 609803 , 611375 , 611416 , 612087 , 614745 , 615746 , 617004 , 617040 , 619777 , 620085 , 622766 , 626873 , 629296 , 630993 , 664632 , 678584 , 682252 , 690093 );
Copy
6
92.81 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
425537
428451
441039
446864
469424
495283
495694
497104
501120
504768
506052
508701
512843
513680
514106
515602
516099
519930
521489
523260
525142
528116
529313
531407
541642
550614
550615
551745
553031
558012
559948
559959
560215
560217
560391
561478
561828
563547
565105
565795
566587
567188
568576
570878
576645
579732
584713
586591
588078
589574
600843
603759
608242
609225
609803
611375
611416
612087
614745
615746
617004
617040
619777
620085
622766
626873
629296
630993
664632
678584
682252
690093
]
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 (425537 , 428451 , 441039 , 446864 , 469424 , 495283 , 495694 , 497104 , 501120 , 504768 , 506052 , 508701 , 512843 , 513680 , 514106 , 515602 , 516099 , 519930 , 521489 , 523260 , 525142 , 528116 , 529313 , 531407 , 541642 , 550614 , 550615 , 551745 , 553031 , 558012 , 559948 , 559959 , 560215 , 560217 , 560391 , 561478 , 561828 , 563547 , 565105 , 565795 , 566587 , 567188 , 568576 , 570878 , 576645 , 579732 , 584713 , 586591 , 588078 , 589574 , 600843 , 603759 , 608242 , 609225 , 609803 , 611375 , 611416 , 612087 , 614745 , 615746 , 617004 , 617040 , 619777 , 620085 , 622766 , 626873 , 629296 , 630993 , 664632 , 678584 , 682252 , 690093 );
Copy