3
13.36 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
426171
623502
554416
614730
420216
491456
521249
387682
623522
622628
445879
503029
417960
550741
550717
550762
604844
573541
748665
559884
673051
621017
551121
457265
471137
623513
408601
512680
573605
651475
526090
566076
557812
483551
550742
570759
382971
503479
503043
491678
475915
512203
512212
497935
622188
424328
552198
801043
550755
510576
513185
827166
709548
559922
642154
512222
595882
550744
573647
619439
482139
638633
573638
506731
489026
593597
528306
502511
648132
502533
]
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 (426171 , 623502 , 554416 , 614730 , 420216 , 491456 , 521249 , 387682 , 623522 , 622628 , 445879 , 503029 , 417960 , 550741 , 550717 , 550762 , 604844 , 573541 , 748665 , 559884 , 673051 , 621017 , 551121 , 457265 , 471137 , 623513 , 408601 , 512680 , 573605 , 651475 , 526090 , 566076 , 557812 , 483551 , 550742 , 570759 , 382971 , 503479 , 503043 , 491678 , 475915 , 512203 , 512212 , 497935 , 622188 , 424328 , 552198 , 801043 , 550755 , 510576 , 513185 , 827166 , 709548 , 559922 , 642154 , 512222 , 595882 , 550744 , 573647 , 619439 , 482139 , 638633 , 573638 , 506731 , 489026 , 593597 , 528306 , 502511 , 648132 , 502533 );
Copy
4
3.62 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
382971
387682
408601
417960
420216
424328
426171
445879
457265
471137
475915
482139
483551
489026
491456
491678
497935
502511
502533
503029
503043
503479
506731
510576
512203
512212
512222
512680
513185
521249
526090
528306
550717
550741
550742
550744
550755
550762
551121
552198
554416
557812
559884
559922
566076
570759
573541
573605
573638
573647
593597
595882
604844
614730
619439
621017
622188
622628
623502
623513
623522
638633
642154
648132
651475
673051
709548
748665
801043
827166
]
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 (382971 , 387682 , 408601 , 417960 , 420216 , 424328 , 426171 , 445879 , 457265 , 471137 , 475915 , 482139 , 483551 , 489026 , 491456 , 491678 , 497935 , 502511 , 502533 , 503029 , 503043 , 503479 , 506731 , 510576 , 512203 , 512212 , 512222 , 512680 , 513185 , 521249 , 526090 , 528306 , 550717 , 550741 , 550742 , 550744 , 550755 , 550762 , 551121 , 552198 , 554416 , 557812 , 559884 , 559922 , 566076 , 570759 , 573541 , 573605 , 573638 , 573647 , 593597 , 595882 , 604844 , 614730 , 619439 , 621017 , 622188 , 622628 , 623502 , 623513 , 623522 , 638633 , 642154 , 648132 , 651475 , 673051 , 709548 , 748665 , 801043 , 827166 );
Copy
5
112.47 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
382971
387682
408601
417960
420216
424328
426171
445879
457265
471137
475915
482139
483551
489026
491456
491678
497935
502511
502533
503029
503043
503479
506731
510576
512203
512212
512222
512680
513185
521249
526090
528306
550717
550741
550742
550744
550755
550762
551121
552198
554416
557812
559884
559922
566076
570759
573541
573605
573638
573647
593597
595882
604844
614730
619439
621017
622188
622628
623502
623513
623522
638633
642154
648132
651475
673051
709548
748665
801043
827166
]
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 (382971 , 387682 , 408601 , 417960 , 420216 , 424328 , 426171 , 445879 , 457265 , 471137 , 475915 , 482139 , 483551 , 489026 , 491456 , 491678 , 497935 , 502511 , 502533 , 503029 , 503043 , 503479 , 506731 , 510576 , 512203 , 512212 , 512222 , 512680 , 513185 , 521249 , 526090 , 528306 , 550717 , 550741 , 550742 , 550744 , 550755 , 550762 , 551121 , 552198 , 554416 , 557812 , 559884 , 559922 , 566076 , 570759 , 573541 , 573605 , 573638 , 573647 , 593597 , 595882 , 604844 , 614730 , 619439 , 621017 , 622188 , 622628 , 623502 , 623513 , 623522 , 638633 , 642154 , 648132 , 651475 , 673051 , 709548 , 748665 , 801043 , 827166 );
Copy