3
9.21 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
728839
828661
773569
422221
818951
813861
813613
791281
791773
802876
771554
698250
773572
717756
823154
771455
626649
797509
785554
783052
810549
823881
560181
771576
800354
683453
771547
783095
795887
697727
813923
817978
803137
810531
477817
597522
807308
491433
561431
612682
825481
580143
783069
434936
445178
612255
552346
564561
499394
678896
508243
556722
737992
449847
581216
509698
595812
417502
422382
438291
616201
560852
519257
509247
524608
437988
575436
572019
]
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 (728839 , 828661 , 773569 , 422221 , 818951 , 813861 , 813613 , 791281 , 791773 , 802876 , 771554 , 698250 , 773572 , 717756 , 823154 , 771455 , 626649 , 797509 , 785554 , 783052 , 810549 , 823881 , 560181 , 771576 , 800354 , 683453 , 771547 , 783095 , 795887 , 697727 , 813923 , 817978 , 803137 , 810531 , 477817 , 597522 , 807308 , 491433 , 561431 , 612682 , 825481 , 580143 , 783069 , 434936 , 445178 , 612255 , 552346 , 564561 , 499394 , 678896 , 508243 , 556722 , 737992 , 449847 , 581216 , 509698 , 595812 , 417502 , 422382 , 438291 , 616201 , 560852 , 519257 , 509247 , 524608 , 437988 , 575436 , 572019 );
Copy
4
3.45 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
417502
422221
422382
434936
437988
438291
445178
449847
477817
491433
499394
508243
509247
509698
519257
524608
552346
556722
560181
560852
561431
564561
572019
575436
580143
581216
595812
597522
612255
612682
616201
626649
678896
683453
697727
698250
717756
728839
737992
771455
771547
771554
771576
773569
773572
783052
783069
783095
785554
791281
791773
795887
797509
800354
802876
803137
807308
810531
810549
813613
813861
813923
817978
818951
823154
823881
825481
]
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 (417502 , 422221 , 422382 , 434936 , 437988 , 438291 , 445178 , 449847 , 477817 , 491433 , 499394 , 508243 , 509247 , 509698 , 519257 , 524608 , 552346 , 556722 , 560181 , 560852 , 561431 , 564561 , 572019 , 575436 , 580143 , 581216 , 595812 , 597522 , 612255 , 612682 , 616201 , 626649 , 678896 , 683453 , 697727 , 698250 , 717756 , 728839 , 737992 , 771455 , 771547 , 771554 , 771576 , 773569 , 773572 , 783052 , 783069 , 783095 , 785554 , 791281 , 791773 , 795887 , 797509 , 800354 , 802876 , 803137 , 807308 , 810531 , 810549 , 813613 , 813861 , 813923 , 817978 , 818951 , 823154 , 823881 , 825481 );
Copy
5
133.79 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
417502
422221
422382
434936
437988
438291
445178
449847
477817
491433
499394
508243
509247
509698
519257
524608
552346
556722
560181
560852
561431
564561
572019
575436
580143
581216
595812
597522
612255
612682
616201
626649
678896
683453
697727
698250
717756
728839
737992
771455
771547
771554
771576
773569
773572
783052
783069
783095
785554
791281
791773
795887
797509
800354
802876
803137
807308
810531
810549
813613
813861
813923
817978
818951
823154
823881
825481
]
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 (417502 , 422221 , 422382 , 434936 , 437988 , 438291 , 445178 , 449847 , 477817 , 491433 , 499394 , 508243 , 509247 , 509698 , 519257 , 524608 , 552346 , 556722 , 560181 , 560852 , 561431 , 564561 , 572019 , 575436 , 580143 , 581216 , 595812 , 597522 , 612255 , 612682 , 616201 , 626649 , 678896 , 683453 , 697727 , 698250 , 717756 , 728839 , 737992 , 771455 , 771547 , 771554 , 771576 , 773569 , 773572 , 783052 , 783069 , 783095 , 785554 , 791281 , 791773 , 795887 , 797509 , 800354 , 802876 , 803137 , 807308 , 810531 , 810549 , 813613 , 813861 , 813923 , 817978 , 818951 , 823154 , 823881 , 825481 );
Copy