3
13.19 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
547332
537713
801468
793439
583855
812226
611013
485191
706003
781552
549087
549315
578156
628916
808881
708817
708821
744757
781574
592052
806614
740805
774688
782738
649964
596993
597700
781573
790959
810967
771068
707262
556104
600320
531085
674917
617921
640741
674414
678138
600990
601641
537209
542533
544827
600200
527198
533014
218811
530659
686843
796608
642774
817680
720440
549095
733525
764651
605326
770758
468590
673357
506560
647875
536861
488724
550409
]
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 (547332 , 537713 , 801468 , 793439 , 583855 , 812226 , 611013 , 485191 , 706003 , 781552 , 549087 , 549315 , 578156 , 628916 , 808881 , 708817 , 708821 , 744757 , 781574 , 592052 , 806614 , 740805 , 774688 , 782738 , 649964 , 596993 , 597700 , 781573 , 790959 , 810967 , 771068 , 707262 , 556104 , 600320 , 531085 , 674917 , 617921 , 640741 , 674414 , 678138 , 600990 , 601641 , 537209 , 542533 , 544827 , 600200 , 527198 , 533014 , 218811 , 530659 , 686843 , 796608 , 642774 , 817680 , 720440 , 549095 , 733525 , 764651 , 605326 , 770758 , 468590 , 673357 , 506560 , 647875 , 536861 , 488724 , 550409 );
Copy
4
2.85 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
218811
468590
485191
488724
506560
527198
530659
531085
533014
536861
537209
537713
542533
544827
547332
549087
549095
549315
550409
556104
578156
583855
592052
596993
597700
600200
600320
600990
601641
605326
611013
617921
628916
640741
642774
647875
649964
673357
674414
674917
678138
686843
706003
707262
708817
708821
720440
733525
740805
744757
764651
770758
771068
774688
781552
781573
781574
782738
790959
793439
796608
801468
806614
808881
810967
812226
817680
]
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 (218811 , 468590 , 485191 , 488724 , 506560 , 527198 , 530659 , 531085 , 533014 , 536861 , 537209 , 537713 , 542533 , 544827 , 547332 , 549087 , 549095 , 549315 , 550409 , 556104 , 578156 , 583855 , 592052 , 596993 , 597700 , 600200 , 600320 , 600990 , 601641 , 605326 , 611013 , 617921 , 628916 , 640741 , 642774 , 647875 , 649964 , 673357 , 674414 , 674917 , 678138 , 686843 , 706003 , 707262 , 708817 , 708821 , 720440 , 733525 , 740805 , 744757 , 764651 , 770758 , 771068 , 774688 , 781552 , 781573 , 781574 , 782738 , 790959 , 793439 , 796608 , 801468 , 806614 , 808881 , 810967 , 812226 , 817680 );
Copy
5
80.04 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
218811
468590
485191
488724
506560
527198
530659
531085
533014
536861
537209
537713
542533
544827
547332
549087
549095
549315
550409
556104
578156
583855
592052
596993
597700
600200
600320
600990
601641
605326
611013
617921
628916
640741
642774
647875
649964
673357
674414
674917
678138
686843
706003
707262
708817
708821
720440
733525
740805
744757
764651
770758
771068
774688
781552
781573
781574
782738
790959
793439
796608
801468
806614
808881
810967
812226
817680
]
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 (218811 , 468590 , 485191 , 488724 , 506560 , 527198 , 530659 , 531085 , 533014 , 536861 , 537209 , 537713 , 542533 , 544827 , 547332 , 549087 , 549095 , 549315 , 550409 , 556104 , 578156 , 583855 , 592052 , 596993 , 597700 , 600200 , 600320 , 600990 , 601641 , 605326 , 611013 , 617921 , 628916 , 640741 , 642774 , 647875 , 649964 , 673357 , 674414 , 674917 , 678138 , 686843 , 706003 , 707262 , 708817 , 708821 , 720440 , 733525 , 740805 , 744757 , 764651 , 770758 , 771068 , 774688 , 781552 , 781573 , 781574 , 782738 , 790959 , 793439 , 796608 , 801468 , 806614 , 808881 , 810967 , 812226 , 817680 );
Copy