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