3
8.02 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
818831
792560
576469
518022
623260
825511
579945
779915
696099
755693
771932
740261
546294
642639
748063
762628
768829
824395
660336
648422
683036
706742
636698
751372
421485
819533
762600
740312
541259
581505
683092
782061
807755
723206
563354
810265
756973
757514
657484
665588
784464
759074
447357
520505
525091
693612
672588
809718
758554
796221
439345
596669
421594
561313
579178
666935
592025
761540
730722
770404
498260
419429
491650
508502
483551
497096
508457
465171
532252
610958
556423
603403
512973
532255
]
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 (818831 , 792560 , 576469 , 518022 , 623260 , 825511 , 579945 , 779915 , 696099 , 755693 , 771932 , 740261 , 546294 , 642639 , 748063 , 762628 , 768829 , 824395 , 660336 , 648422 , 683036 , 706742 , 636698 , 751372 , 421485 , 819533 , 762600 , 740312 , 541259 , 581505 , 683092 , 782061 , 807755 , 723206 , 563354 , 810265 , 756973 , 757514 , 657484 , 665588 , 784464 , 759074 , 447357 , 520505 , 525091 , 693612 , 672588 , 809718 , 758554 , 796221 , 439345 , 596669 , 421594 , 561313 , 579178 , 666935 , 592025 , 761540 , 730722 , 770404 , 498260 , 419429 , 491650 , 508502 , 483551 , 497096 , 508457 , 465171 , 532252 , 610958 , 556423 , 603403 , 512973 , 532255 );
Copy
4
2.39 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
419429
421485
421594
439345
447357
465171
483551
491650
497096
498260
508457
508502
512973
518022
520505
525091
532252
532255
541259
546294
556423
561313
563354
576469
579178
579945
581505
592025
596669
603403
610958
623260
636698
642639
648422
657484
660336
665588
666935
672588
683036
683092
693612
696099
706742
723206
730722
740261
740312
748063
751372
755693
756973
757514
758554
759074
761540
762600
762628
768829
770404
771932
779915
782061
784464
792560
796221
807755
809718
810265
818831
819533
824395
]
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 (419429 , 421485 , 421594 , 439345 , 447357 , 465171 , 483551 , 491650 , 497096 , 498260 , 508457 , 508502 , 512973 , 518022 , 520505 , 525091 , 532252 , 532255 , 541259 , 546294 , 556423 , 561313 , 563354 , 576469 , 579178 , 579945 , 581505 , 592025 , 596669 , 603403 , 610958 , 623260 , 636698 , 642639 , 648422 , 657484 , 660336 , 665588 , 666935 , 672588 , 683036 , 683092 , 693612 , 696099 , 706742 , 723206 , 730722 , 740261 , 740312 , 748063 , 751372 , 755693 , 756973 , 757514 , 758554 , 759074 , 761540 , 762600 , 762628 , 768829 , 770404 , 771932 , 779915 , 782061 , 784464 , 792560 , 796221 , 807755 , 809718 , 810265 , 818831 , 819533 , 824395 );
Copy
5
98.09 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
419429
421485
421594
439345
447357
465171
483551
491650
497096
498260
508457
508502
512973
518022
520505
525091
532252
532255
541259
546294
556423
561313
563354
576469
579178
579945
581505
592025
596669
603403
610958
623260
636698
642639
648422
657484
660336
665588
666935
672588
683036
683092
693612
696099
706742
723206
730722
740261
740312
748063
751372
755693
756973
757514
758554
759074
761540
762600
762628
768829
770404
771932
779915
782061
784464
792560
796221
807755
809718
810265
818831
819533
824395
]
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 (419429 , 421485 , 421594 , 439345 , 447357 , 465171 , 483551 , 491650 , 497096 , 498260 , 508457 , 508502 , 512973 , 518022 , 520505 , 525091 , 532252 , 532255 , 541259 , 546294 , 556423 , 561313 , 563354 , 576469 , 579178 , 579945 , 581505 , 592025 , 596669 , 603403 , 610958 , 623260 , 636698 , 642639 , 648422 , 657484 , 660336 , 665588 , 666935 , 672588 , 683036 , 683092 , 693612 , 696099 , 706742 , 723206 , 730722 , 740261 , 740312 , 748063 , 751372 , 755693 , 756973 , 757514 , 758554 , 759074 , 761540 , 762600 , 762628 , 768829 , 770404 , 771932 , 779915 , 782061 , 784464 , 792560 , 796221 , 807755 , 809718 , 810265 , 818831 , 819533 , 824395 );
Copy