3
11.56 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
387192
791604
636255
500679
522956
604621
415734
717069
798822
804649
804617
804303
754438
582363
673658
798841
804210
807876
774333
612321
725565
452489
675124
820358
820983
681288
724522
779618
602592
822590
285023
696058
718143
732849
754401
768092
595595
635222
618399
453747
812860
810974
612335
817039
583375
689989
702959
450208
612381
570352
797496
517121
687554
552854
598947
518600
494796
551162
456738
470991
572809
582438
714840
726472
636322
390723
445530
558581
498357
681660
508497
]
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 (387192 , 791604 , 636255 , 500679 , 522956 , 604621 , 415734 , 717069 , 798822 , 804649 , 804617 , 804303 , 754438 , 582363 , 673658 , 798841 , 804210 , 807876 , 774333 , 612321 , 725565 , 452489 , 675124 , 820358 , 820983 , 681288 , 724522 , 779618 , 602592 , 822590 , 285023 , 696058 , 718143 , 732849 , 754401 , 768092 , 595595 , 635222 , 618399 , 453747 , 812860 , 810974 , 612335 , 817039 , 583375 , 689989 , 702959 , 450208 , 612381 , 570352 , 797496 , 517121 , 687554 , 552854 , 598947 , 518600 , 494796 , 551162 , 456738 , 470991 , 572809 , 582438 , 714840 , 726472 , 636322 , 390723 , 445530 , 558581 , 498357 , 681660 , 508497 );
Copy
4
2.40 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
285023
387192
390723
415734
445530
450208
452489
453747
456738
470991
494796
498357
500679
508497
517121
518600
522956
551162
552854
558581
570352
572809
582363
582438
583375
595595
598947
602592
612321
612335
612381
618399
635222
636255
636322
673658
675124
681288
681660
687554
689989
696058
702959
714840
717069
718143
724522
725565
726472
732849
754401
754438
768092
774333
779618
791604
797496
798822
798841
804210
804303
804617
804649
807876
810974
812860
817039
820358
820983
822590
]
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 (285023 , 387192 , 390723 , 415734 , 445530 , 450208 , 452489 , 453747 , 456738 , 470991 , 494796 , 498357 , 500679 , 508497 , 517121 , 518600 , 522956 , 551162 , 552854 , 558581 , 570352 , 572809 , 582363 , 582438 , 583375 , 595595 , 598947 , 602592 , 612321 , 612335 , 612381 , 618399 , 635222 , 636255 , 636322 , 673658 , 675124 , 681288 , 681660 , 687554 , 689989 , 696058 , 702959 , 714840 , 717069 , 718143 , 724522 , 725565 , 726472 , 732849 , 754401 , 754438 , 768092 , 774333 , 779618 , 791604 , 797496 , 798822 , 798841 , 804210 , 804303 , 804617 , 804649 , 807876 , 810974 , 812860 , 817039 , 820358 , 820983 , 822590 );
Copy
5
90.71 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
285023
387192
390723
415734
445530
450208
452489
453747
456738
470991
494796
498357
500679
508497
517121
518600
522956
551162
552854
558581
570352
572809
582363
582438
583375
595595
598947
602592
612321
612335
612381
618399
635222
636255
636322
673658
675124
681288
681660
687554
689989
696058
702959
714840
717069
718143
724522
725565
726472
732849
754401
754438
768092
774333
779618
791604
797496
798822
798841
804210
804303
804617
804649
807876
810974
812860
817039
820358
820983
822590
]
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 (285023 , 387192 , 390723 , 415734 , 445530 , 450208 , 452489 , 453747 , 456738 , 470991 , 494796 , 498357 , 500679 , 508497 , 517121 , 518600 , 522956 , 551162 , 552854 , 558581 , 570352 , 572809 , 582363 , 582438 , 583375 , 595595 , 598947 , 602592 , 612321 , 612335 , 612381 , 618399 , 635222 , 636255 , 636322 , 673658 , 675124 , 681288 , 681660 , 687554 , 689989 , 696058 , 702959 , 714840 , 717069 , 718143 , 724522 , 725565 , 726472 , 732849 , 754401 , 754438 , 768092 , 774333 , 779618 , 791604 , 797496 , 798822 , 798841 , 804210 , 804303 , 804617 , 804649 , 807876 , 810974 , 812860 , 817039 , 820358 , 820983 , 822590 );
Copy