4
9.92 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
616387
792715
660068
769963
615317
660762
589714
757266
532866
711948
707206
629347
804415
757264
757267
757252
814201
651786
656279
757275
617764
720259
789749
554572
710480
556098
782043
757257
818561
752584
710674
656228
666182
666183
591835
737003
750209
752787
650519
707173
634044
794466
592349
634081
726785
724059
529491
616561
788856
528475
710659
594340
788133
586583
799767
788849
776277
655927
485140
476225
532783
514876
467108
710435
641126
556505
478651
]
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 (616387 , 792715 , 660068 , 769963 , 615317 , 660762 , 589714 , 757266 , 532866 , 711948 , 707206 , 629347 , 804415 , 757264 , 757267 , 757252 , 814201 , 651786 , 656279 , 757275 , 617764 , 720259 , 789749 , 554572 , 710480 , 556098 , 782043 , 757257 , 818561 , 752584 , 710674 , 656228 , 666182 , 666183 , 591835 , 737003 , 750209 , 752787 , 650519 , 707173 , 634044 , 794466 , 592349 , 634081 , 726785 , 724059 , 529491 , 616561 , 788856 , 528475 , 710659 , 594340 , 788133 , 586583 , 799767 , 788849 , 776277 , 655927 , 485140 , 476225 , 532783 , 514876 , 467108 , 710435 , 641126 , 556505 , 478651 );
Copy
5
2.27 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
467108
476225
478651
485140
514876
528475
529491
532783
532866
554572
556098
556505
586583
589714
591835
592349
594340
615317
616387
616561
617764
629347
634044
634081
641126
650519
651786
655927
656228
656279
660068
660762
666182
666183
707173
707206
710435
710480
710659
710674
711948
720259
724059
726785
737003
750209
752584
752787
757252
757257
757264
757266
757267
757275
769963
776277
782043
788133
788849
788856
789749
792715
794466
799767
804415
814201
818561
]
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 (467108 , 476225 , 478651 , 485140 , 514876 , 528475 , 529491 , 532783 , 532866 , 554572 , 556098 , 556505 , 586583 , 589714 , 591835 , 592349 , 594340 , 615317 , 616387 , 616561 , 617764 , 629347 , 634044 , 634081 , 641126 , 650519 , 651786 , 655927 , 656228 , 656279 , 660068 , 660762 , 666182 , 666183 , 707173 , 707206 , 710435 , 710480 , 710659 , 710674 , 711948 , 720259 , 724059 , 726785 , 737003 , 750209 , 752584 , 752787 , 757252 , 757257 , 757264 , 757266 , 757267 , 757275 , 769963 , 776277 , 782043 , 788133 , 788849 , 788856 , 789749 , 792715 , 794466 , 799767 , 804415 , 814201 , 818561 );
Copy
6
85.08 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
467108
476225
478651
485140
514876
528475
529491
532783
532866
554572
556098
556505
586583
589714
591835
592349
594340
615317
616387
616561
617764
629347
634044
634081
641126
650519
651786
655927
656228
656279
660068
660762
666182
666183
707173
707206
710435
710480
710659
710674
711948
720259
724059
726785
737003
750209
752584
752787
757252
757257
757264
757266
757267
757275
769963
776277
782043
788133
788849
788856
789749
792715
794466
799767
804415
814201
818561
]
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 (467108 , 476225 , 478651 , 485140 , 514876 , 528475 , 529491 , 532783 , 532866 , 554572 , 556098 , 556505 , 586583 , 589714 , 591835 , 592349 , 594340 , 615317 , 616387 , 616561 , 617764 , 629347 , 634044 , 634081 , 641126 , 650519 , 651786 , 655927 , 656228 , 656279 , 660068 , 660762 , 666182 , 666183 , 707173 , 707206 , 710435 , 710480 , 710659 , 710674 , 711948 , 720259 , 724059 , 726785 , 737003 , 750209 , 752584 , 752787 , 757252 , 757257 , 757264 , 757266 , 757267 , 757275 , 769963 , 776277 , 782043 , 788133 , 788849 , 788856 , 789749 , 792715 , 794466 , 799767 , 804415 , 814201 , 818561 );
Copy