3
11.64 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
692008
692013
804015
629092
574524
178441
652904
791138
598805
800554
387186
388546
594182
743126
501649
523100
574800
693502
524002
564609
591658
807541
402034
462658
574198
438646
464610
657177
727668
806043
771815
385436
385894
468899
447934
487272
435795
533291
531907
511820
535746
575066
574490
446126
447551
520421
469824
558844
690943
722915
806019
774178
767025
428018
446125
470067
478471
522792
535748
526101
444606
477441
574546
531129
513575
598724
597542
609880
]
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 (692008 , 692013 , 804015 , 629092 , 574524 , 178441 , 652904 , 791138 , 598805 , 800554 , 387186 , 388546 , 594182 , 743126 , 501649 , 523100 , 574800 , 693502 , 524002 , 564609 , 591658 , 807541 , 402034 , 462658 , 574198 , 438646 , 464610 , 657177 , 727668 , 806043 , 771815 , 385436 , 385894 , 468899 , 447934 , 487272 , 435795 , 533291 , 531907 , 511820 , 535746 , 575066 , 574490 , 446126 , 447551 , 520421 , 469824 , 558844 , 690943 , 722915 , 806019 , 774178 , 767025 , 428018 , 446125 , 470067 , 478471 , 522792 , 535748 , 526101 , 444606 , 477441 , 574546 , 531129 , 513575 , 598724 , 597542 , 609880 );
Copy
4
3.67 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
178441
385436
385894
387186
388546
402034
428018
435795
438646
444606
446125
446126
447551
447934
462658
464610
468899
469824
470067
477441
478471
487272
501649
511820
513575
520421
522792
523100
524002
526101
531129
531907
533291
535746
535748
558844
564609
574198
574490
574524
574546
574800
575066
591658
594182
597542
598724
598805
609880
629092
652904
657177
690943
692008
692013
693502
722915
727668
743126
767025
771815
774178
791138
800554
804015
806019
806043
807541
]
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 (178441 , 385436 , 385894 , 387186 , 388546 , 402034 , 428018 , 435795 , 438646 , 444606 , 446125 , 446126 , 447551 , 447934 , 462658 , 464610 , 468899 , 469824 , 470067 , 477441 , 478471 , 487272 , 501649 , 511820 , 513575 , 520421 , 522792 , 523100 , 524002 , 526101 , 531129 , 531907 , 533291 , 535746 , 535748 , 558844 , 564609 , 574198 , 574490 , 574524 , 574546 , 574800 , 575066 , 591658 , 594182 , 597542 , 598724 , 598805 , 609880 , 629092 , 652904 , 657177 , 690943 , 692008 , 692013 , 693502 , 722915 , 727668 , 743126 , 767025 , 771815 , 774178 , 791138 , 800554 , 804015 , 806019 , 806043 , 807541 );
Copy
5
81.14 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
178441
385436
385894
387186
388546
402034
428018
435795
438646
444606
446125
446126
447551
447934
462658
464610
468899
469824
470067
477441
478471
487272
501649
511820
513575
520421
522792
523100
524002
526101
531129
531907
533291
535746
535748
558844
564609
574198
574490
574524
574546
574800
575066
591658
594182
597542
598724
598805
609880
629092
652904
657177
690943
692008
692013
693502
722915
727668
743126
767025
771815
774178
791138
800554
804015
806019
806043
807541
]
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 (178441 , 385436 , 385894 , 387186 , 388546 , 402034 , 428018 , 435795 , 438646 , 444606 , 446125 , 446126 , 447551 , 447934 , 462658 , 464610 , 468899 , 469824 , 470067 , 477441 , 478471 , 487272 , 501649 , 511820 , 513575 , 520421 , 522792 , 523100 , 524002 , 526101 , 531129 , 531907 , 533291 , 535746 , 535748 , 558844 , 564609 , 574198 , 574490 , 574524 , 574546 , 574800 , 575066 , 591658 , 594182 , 597542 , 598724 , 598805 , 609880 , 629092 , 652904 , 657177 , 690943 , 692008 , 692013 , 693502 , 722915 , 727668 , 743126 , 767025 , 771815 , 774178 , 791138 , 800554 , 804015 , 806019 , 806043 , 807541 );
Copy