3
7.71 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
771634
603331
740134
817745
604787
536505
481785
565117
595508
542186
529989
557496
797973
650412
640528
757667
725793
774751
805323
567542
574711
634855
805320
533173
745949
745968
714401
444118
566669
618632
771008
530302
654988
628826
644127
622459
827395
781608
501703
471185
574708
724527
607403
710528
623964
594159
714879
724885
813196
764339
562012
587178
654945
640242
781850
549226
650440
749672
470417
770814
388423
443403
457302
537353
628553
727334
761208
509317
487057
461169
]
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 (771634 , 603331 , 740134 , 817745 , 604787 , 536505 , 481785 , 565117 , 595508 , 542186 , 529989 , 557496 , 797973 , 650412 , 640528 , 757667 , 725793 , 774751 , 805323 , 567542 , 574711 , 634855 , 805320 , 533173 , 745949 , 745968 , 714401 , 444118 , 566669 , 618632 , 771008 , 530302 , 654988 , 628826 , 644127 , 622459 , 827395 , 781608 , 501703 , 471185 , 574708 , 724527 , 607403 , 710528 , 623964 , 594159 , 714879 , 724885 , 813196 , 764339 , 562012 , 587178 , 654945 , 640242 , 781850 , 549226 , 650440 , 749672 , 470417 , 770814 , 388423 , 443403 , 457302 , 537353 , 628553 , 727334 , 761208 , 509317 , 487057 , 461169 );
Copy
4
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
388423
443403
444118
457302
461169
470417
471185
481785
487057
501703
509317
529989
530302
533173
536505
537353
542186
549226
557496
562012
565117
566669
567542
574708
574711
587178
594159
595508
603331
604787
607403
618632
622459
623964
628553
628826
634855
640242
640528
644127
650412
650440
654945
654988
710528
714401
714879
724527
724885
725793
727334
740134
745949
745968
749672
757667
761208
764339
770814
771008
771634
774751
781608
781850
797973
805320
805323
813196
817745
827395
]
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 (388423 , 443403 , 444118 , 457302 , 461169 , 470417 , 471185 , 481785 , 487057 , 501703 , 509317 , 529989 , 530302 , 533173 , 536505 , 537353 , 542186 , 549226 , 557496 , 562012 , 565117 , 566669 , 567542 , 574708 , 574711 , 587178 , 594159 , 595508 , 603331 , 604787 , 607403 , 618632 , 622459 , 623964 , 628553 , 628826 , 634855 , 640242 , 640528 , 644127 , 650412 , 650440 , 654945 , 654988 , 710528 , 714401 , 714879 , 724527 , 724885 , 725793 , 727334 , 740134 , 745949 , 745968 , 749672 , 757667 , 761208 , 764339 , 770814 , 771008 , 771634 , 774751 , 781608 , 781850 , 797973 , 805320 , 805323 , 813196 , 817745 , 827395 );
Copy
5
96.42 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
388423
443403
444118
457302
461169
470417
471185
481785
487057
501703
509317
529989
530302
533173
536505
537353
542186
549226
557496
562012
565117
566669
567542
574708
574711
587178
594159
595508
603331
604787
607403
618632
622459
623964
628553
628826
634855
640242
640528
644127
650412
650440
654945
654988
710528
714401
714879
724527
724885
725793
727334
740134
745949
745968
749672
757667
761208
764339
770814
771008
771634
774751
781608
781850
797973
805320
805323
813196
817745
827395
]
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 (388423 , 443403 , 444118 , 457302 , 461169 , 470417 , 471185 , 481785 , 487057 , 501703 , 509317 , 529989 , 530302 , 533173 , 536505 , 537353 , 542186 , 549226 , 557496 , 562012 , 565117 , 566669 , 567542 , 574708 , 574711 , 587178 , 594159 , 595508 , 603331 , 604787 , 607403 , 618632 , 622459 , 623964 , 628553 , 628826 , 634855 , 640242 , 640528 , 644127 , 650412 , 650440 , 654945 , 654988 , 710528 , 714401 , 714879 , 724527 , 724885 , 725793 , 727334 , 740134 , 745949 , 745968 , 749672 , 757667 , 761208 , 764339 , 770814 , 771008 , 771634 , 774751 , 781608 , 781850 , 797973 , 805320 , 805323 , 813196 , 817745 , 827395 );
Copy