3
17.65 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
752852
586545
639632
534719
386671
645751
618985
530710
661383
625678
619094
529918
536941
557606
544920
529901
552715
828408
489087
802915
576424
611541
768669
819117
549439
576478
738427
661330
539297
647217
759155
669859
550117
386925
826752
707812
477763
579661
660024
661356
597209
827243
529731
535371
824734
691834
815696
819153
750935
449291
614848
638111
771491
789230
749829
661378
768969
774574
804648
661331
804652
798805
812212
562381
798824
798838
810644
702613
450858
534663
529914
614797
525947
525729
558316
577031
]
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 (752852 , 586545 , 639632 , 534719 , 386671 , 645751 , 618985 , 530710 , 661383 , 625678 , 619094 , 529918 , 536941 , 557606 , 544920 , 529901 , 552715 , 828408 , 489087 , 802915 , 576424 , 611541 , 768669 , 819117 , 549439 , 576478 , 738427 , 661330 , 539297 , 647217 , 759155 , 669859 , 550117 , 386925 , 826752 , 707812 , 477763 , 579661 , 660024 , 661356 , 597209 , 827243 , 529731 , 535371 , 824734 , 691834 , 815696 , 819153 , 750935 , 449291 , 614848 , 638111 , 771491 , 789230 , 749829 , 661378 , 768969 , 774574 , 804648 , 661331 , 804652 , 798805 , 812212 , 562381 , 798824 , 798838 , 810644 , 702613 , 450858 , 534663 , 529914 , 614797 , 525947 , 525729 , 558316 , 577031 );
Copy
4
2.92 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
386671
386925
449291
450858
477763
489087
525729
525947
529731
529901
529914
529918
530710
534663
534719
535371
536941
539297
544920
549439
550117
552715
557606
558316
562381
576424
576478
577031
579661
586545
597209
611541
614797
614848
618985
619094
625678
638111
639632
645751
647217
660024
661330
661331
661356
661378
661383
669859
691834
702613
707812
738427
749829
750935
752852
759155
768669
768969
771491
774574
789230
798805
798824
798838
802915
804648
804652
810644
812212
815696
819117
819153
826752
827243
828408
]
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 (386671 , 386925 , 449291 , 450858 , 477763 , 489087 , 525729 , 525947 , 529731 , 529901 , 529914 , 529918 , 530710 , 534663 , 534719 , 535371 , 536941 , 539297 , 544920 , 549439 , 550117 , 552715 , 557606 , 558316 , 562381 , 576424 , 576478 , 577031 , 579661 , 586545 , 597209 , 611541 , 614797 , 614848 , 618985 , 619094 , 625678 , 638111 , 639632 , 645751 , 647217 , 660024 , 661330 , 661331 , 661356 , 661378 , 661383 , 669859 , 691834 , 702613 , 707812 , 738427 , 749829 , 750935 , 752852 , 759155 , 768669 , 768969 , 771491 , 774574 , 789230 , 798805 , 798824 , 798838 , 802915 , 804648 , 804652 , 810644 , 812212 , 815696 , 819117 , 819153 , 826752 , 827243 , 828408 );
Copy
5
91.65 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
386671
386925
449291
450858
477763
489087
525729
525947
529731
529901
529914
529918
530710
534663
534719
535371
536941
539297
544920
549439
550117
552715
557606
558316
562381
576424
576478
577031
579661
586545
597209
611541
614797
614848
618985
619094
625678
638111
639632
645751
647217
660024
661330
661331
661356
661378
661383
669859
691834
702613
707812
738427
749829
750935
752852
759155
768669
768969
771491
774574
789230
798805
798824
798838
802915
804648
804652
810644
812212
815696
819117
819153
826752
827243
828408
]
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 (386671 , 386925 , 449291 , 450858 , 477763 , 489087 , 525729 , 525947 , 529731 , 529901 , 529914 , 529918 , 530710 , 534663 , 534719 , 535371 , 536941 , 539297 , 544920 , 549439 , 550117 , 552715 , 557606 , 558316 , 562381 , 576424 , 576478 , 577031 , 579661 , 586545 , 597209 , 611541 , 614797 , 614848 , 618985 , 619094 , 625678 , 638111 , 639632 , 645751 , 647217 , 660024 , 661330 , 661331 , 661356 , 661378 , 661383 , 669859 , 691834 , 702613 , 707812 , 738427 , 749829 , 750935 , 752852 , 759155 , 768669 , 768969 , 771491 , 774574 , 789230 , 798805 , 798824 , 798838 , 802915 , 804648 , 804652 , 810644 , 812212 , 815696 , 819117 , 819153 , 826752 , 827243 , 828408 );
Copy