4
8.14 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
396113
826849
547380
631116
437793
746075
562228
389738
678799
480037
584287
668646
119987
533594
668690
603432
759326
432779
752787
802493
516336
655639
730692
742286
766818
398261
561416
574502
622399
605437
811994
732899
505804
562326
677362
477556
414138
580239
679087
679102
747976
451433
590813
508185
528960
554475
428972
478076
642359
648560
462379
699586
448519
518289
540595
415963
446657
576020
496636
556017
614058
696203
497867
492273
443971
429805
570708
672710
476223
565178
630536
632632
598199
]
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 (396113 , 826849 , 547380 , 631116 , 437793 , 746075 , 562228 , 389738 , 678799 , 480037 , 584287 , 668646 , 119987 , 533594 , 668690 , 603432 , 759326 , 432779 , 752787 , 802493 , 516336 , 655639 , 730692 , 742286 , 766818 , 398261 , 561416 , 574502 , 622399 , 605437 , 811994 , 732899 , 505804 , 562326 , 677362 , 477556 , 414138 , 580239 , 679087 , 679102 , 747976 , 451433 , 590813 , 508185 , 528960 , 554475 , 428972 , 478076 , 642359 , 648560 , 462379 , 699586 , 448519 , 518289 , 540595 , 415963 , 446657 , 576020 , 496636 , 556017 , 614058 , 696203 , 497867 , 492273 , 443971 , 429805 , 570708 , 672710 , 476223 , 565178 , 630536 , 632632 , 598199 );
Copy
5
2.66 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
119987
389738
396113
398261
414138
415963
428972
429805
432779
437793
443971
446657
448519
451433
462379
476223
477556
478076
480037
492273
496636
497867
505804
508185
516336
518289
528960
533594
540595
547380
554475
556017
561416
562228
562326
565178
570708
574502
576020
580239
584287
590813
598199
603432
605437
614058
622399
630536
631116
632632
642359
648560
655639
668646
668690
672710
677362
678799
679087
679102
696203
699586
730692
732899
742286
746075
747976
752787
759326
766818
802493
811994
826849
]
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 (119987 , 389738 , 396113 , 398261 , 414138 , 415963 , 428972 , 429805 , 432779 , 437793 , 443971 , 446657 , 448519 , 451433 , 462379 , 476223 , 477556 , 478076 , 480037 , 492273 , 496636 , 497867 , 505804 , 508185 , 516336 , 518289 , 528960 , 533594 , 540595 , 547380 , 554475 , 556017 , 561416 , 562228 , 562326 , 565178 , 570708 , 574502 , 576020 , 580239 , 584287 , 590813 , 598199 , 603432 , 605437 , 614058 , 622399 , 630536 , 631116 , 632632 , 642359 , 648560 , 655639 , 668646 , 668690 , 672710 , 677362 , 678799 , 679087 , 679102 , 696203 , 699586 , 730692 , 732899 , 742286 , 746075 , 747976 , 752787 , 759326 , 766818 , 802493 , 811994 , 826849 );
Copy
6
93.40 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
119987
389738
396113
398261
414138
415963
428972
429805
432779
437793
443971
446657
448519
451433
462379
476223
477556
478076
480037
492273
496636
497867
505804
508185
516336
518289
528960
533594
540595
547380
554475
556017
561416
562228
562326
565178
570708
574502
576020
580239
584287
590813
598199
603432
605437
614058
622399
630536
631116
632632
642359
648560
655639
668646
668690
672710
677362
678799
679087
679102
696203
699586
730692
732899
742286
746075
747976
752787
759326
766818
802493
811994
826849
]
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 (119987 , 389738 , 396113 , 398261 , 414138 , 415963 , 428972 , 429805 , 432779 , 437793 , 443971 , 446657 , 448519 , 451433 , 462379 , 476223 , 477556 , 478076 , 480037 , 492273 , 496636 , 497867 , 505804 , 508185 , 516336 , 518289 , 528960 , 533594 , 540595 , 547380 , 554475 , 556017 , 561416 , 562228 , 562326 , 565178 , 570708 , 574502 , 576020 , 580239 , 584287 , 590813 , 598199 , 603432 , 605437 , 614058 , 622399 , 630536 , 631116 , 632632 , 642359 , 648560 , 655639 , 668646 , 668690 , 672710 , 677362 , 678799 , 679087 , 679102 , 696203 , 699586 , 730692 , 732899 , 742286 , 746075 , 747976 , 752787 , 759326 , 766818 , 802493 , 811994 , 826849 );
Copy