3
10.43 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
751817
825275
573212
710771
733686
716669
602911
763747
621882
629878
636247
660274
542600
758672
792552
733706
788272
767101
710940
786611
735140
542912
542622
777688
736942
764420
738770
726069
784149
545833
760428
739999
694771
738919
747938
587459
532567
545802
548086
711563
711982
718311
792275
542869
780784
545795
739038
804104
723919
762664
719908
788115
542904
760451
763398
571029
450274
784948
545800
542875
473500
544012
545834
545801
759270
559835
727052
532580
532531
554163
537485
545831
532604
]
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 (751817 , 825275 , 573212 , 710771 , 733686 , 716669 , 602911 , 763747 , 621882 , 629878 , 636247 , 660274 , 542600 , 758672 , 792552 , 733706 , 788272 , 767101 , 710940 , 786611 , 735140 , 542912 , 542622 , 777688 , 736942 , 764420 , 738770 , 726069 , 784149 , 545833 , 760428 , 739999 , 694771 , 738919 , 747938 , 587459 , 532567 , 545802 , 548086 , 711563 , 711982 , 718311 , 792275 , 542869 , 780784 , 545795 , 739038 , 804104 , 723919 , 762664 , 719908 , 788115 , 542904 , 760451 , 763398 , 571029 , 450274 , 784948 , 545800 , 542875 , 473500 , 544012 , 545834 , 545801 , 759270 , 559835 , 727052 , 532580 , 532531 , 554163 , 537485 , 545831 , 532604 );
Copy
4
2.96 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
450274
473500
532531
532567
532580
532604
537485
542600
542622
542869
542875
542904
542912
544012
545795
545800
545801
545802
545831
545833
545834
548086
554163
559835
571029
573212
587459
602911
621882
629878
636247
660274
694771
710771
710940
711563
711982
716669
718311
719908
723919
726069
727052
733686
733706
735140
736942
738770
738919
739038
739999
747938
751817
758672
759270
760428
760451
762664
763398
763747
764420
767101
777688
780784
784149
784948
786611
788115
788272
792275
792552
804104
825275
]
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 (450274 , 473500 , 532531 , 532567 , 532580 , 532604 , 537485 , 542600 , 542622 , 542869 , 542875 , 542904 , 542912 , 544012 , 545795 , 545800 , 545801 , 545802 , 545831 , 545833 , 545834 , 548086 , 554163 , 559835 , 571029 , 573212 , 587459 , 602911 , 621882 , 629878 , 636247 , 660274 , 694771 , 710771 , 710940 , 711563 , 711982 , 716669 , 718311 , 719908 , 723919 , 726069 , 727052 , 733686 , 733706 , 735140 , 736942 , 738770 , 738919 , 739038 , 739999 , 747938 , 751817 , 758672 , 759270 , 760428 , 760451 , 762664 , 763398 , 763747 , 764420 , 767101 , 777688 , 780784 , 784149 , 784948 , 786611 , 788115 , 788272 , 792275 , 792552 , 804104 , 825275 );
Copy
5
117.25 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
450274
473500
532531
532567
532580
532604
537485
542600
542622
542869
542875
542904
542912
544012
545795
545800
545801
545802
545831
545833
545834
548086
554163
559835
571029
573212
587459
602911
621882
629878
636247
660274
694771
710771
710940
711563
711982
716669
718311
719908
723919
726069
727052
733686
733706
735140
736942
738770
738919
739038
739999
747938
751817
758672
759270
760428
760451
762664
763398
763747
764420
767101
777688
780784
784149
784948
786611
788115
788272
792275
792552
804104
825275
]
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 (450274 , 473500 , 532531 , 532567 , 532580 , 532604 , 537485 , 542600 , 542622 , 542869 , 542875 , 542904 , 542912 , 544012 , 545795 , 545800 , 545801 , 545802 , 545831 , 545833 , 545834 , 548086 , 554163 , 559835 , 571029 , 573212 , 587459 , 602911 , 621882 , 629878 , 636247 , 660274 , 694771 , 710771 , 710940 , 711563 , 711982 , 716669 , 718311 , 719908 , 723919 , 726069 , 727052 , 733686 , 733706 , 735140 , 736942 , 738770 , 738919 , 739038 , 739999 , 747938 , 751817 , 758672 , 759270 , 760428 , 760451 , 762664 , 763398 , 763747 , 764420 , 767101 , 777688 , 780784 , 784149 , 784948 , 786611 , 788115 , 788272 , 792275 , 792552 , 804104 , 825275 );
Copy