3
14.70 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
581850
634512
464916
698102
434286
498649
454954
533846
628334
639824
487362
530001
503310
641953
639745
584832
521481
621259
452568
448489
556911
631256
423025
542021
715544
620217
439020
572339
644913
512975
458770
522096
448798
383880
600011
523924
422863
505069
429763
648220
597216
528361
493249
576690
646771
530436
491056
471693
423037
567779
637017
529792
624742
531251
630635
666853
633796
428315
578631
703364
428761
467946
540339
633736
625660
545437
637001
622241
515793
647893
515974
514241
620198
439518
]
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 (581850 , 634512 , 464916 , 698102 , 434286 , 498649 , 454954 , 533846 , 628334 , 639824 , 487362 , 530001 , 503310 , 641953 , 639745 , 584832 , 521481 , 621259 , 452568 , 448489 , 556911 , 631256 , 423025 , 542021 , 715544 , 620217 , 439020 , 572339 , 644913 , 512975 , 458770 , 522096 , 448798 , 383880 , 600011 , 523924 , 422863 , 505069 , 429763 , 648220 , 597216 , 528361 , 493249 , 576690 , 646771 , 530436 , 491056 , 471693 , 423037 , 567779 , 637017 , 529792 , 624742 , 531251 , 630635 , 666853 , 633796 , 428315 , 578631 , 703364 , 428761 , 467946 , 540339 , 633736 , 625660 , 545437 , 637001 , 622241 , 515793 , 647893 , 515974 , 514241 , 620198 , 439518 );
Copy
4
2.80 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
383880
422863
423025
423037
428315
428761
429763
434286
439020
439518
448489
448798
452568
454954
458770
464916
467946
471693
487362
491056
493249
498649
503310
505069
512975
514241
515793
515974
521481
522096
523924
528361
529792
530001
530436
531251
533846
540339
542021
545437
556911
567779
572339
576690
578631
581850
584832
597216
600011
620198
620217
621259
622241
624742
625660
628334
630635
631256
633736
633796
634512
637001
637017
639745
639824
641953
644913
646771
647893
648220
666853
698102
703364
715544
]
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 (383880 , 422863 , 423025 , 423037 , 428315 , 428761 , 429763 , 434286 , 439020 , 439518 , 448489 , 448798 , 452568 , 454954 , 458770 , 464916 , 467946 , 471693 , 487362 , 491056 , 493249 , 498649 , 503310 , 505069 , 512975 , 514241 , 515793 , 515974 , 521481 , 522096 , 523924 , 528361 , 529792 , 530001 , 530436 , 531251 , 533846 , 540339 , 542021 , 545437 , 556911 , 567779 , 572339 , 576690 , 578631 , 581850 , 584832 , 597216 , 600011 , 620198 , 620217 , 621259 , 622241 , 624742 , 625660 , 628334 , 630635 , 631256 , 633736 , 633796 , 634512 , 637001 , 637017 , 639745 , 639824 , 641953 , 644913 , 646771 , 647893 , 648220 , 666853 , 698102 , 703364 , 715544 );
Copy
5
145.00 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
383880
422863
423025
423037
428315
428761
429763
434286
439020
439518
448489
448798
452568
454954
458770
464916
467946
471693
487362
491056
493249
498649
503310
505069
512975
514241
515793
515974
521481
522096
523924
528361
529792
530001
530436
531251
533846
540339
542021
545437
556911
567779
572339
576690
578631
581850
584832
597216
600011
620198
620217
621259
622241
624742
625660
628334
630635
631256
633736
633796
634512
637001
637017
639745
639824
641953
644913
646771
647893
648220
666853
698102
703364
715544
]
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 (383880 , 422863 , 423025 , 423037 , 428315 , 428761 , 429763 , 434286 , 439020 , 439518 , 448489 , 448798 , 452568 , 454954 , 458770 , 464916 , 467946 , 471693 , 487362 , 491056 , 493249 , 498649 , 503310 , 505069 , 512975 , 514241 , 515793 , 515974 , 521481 , 522096 , 523924 , 528361 , 529792 , 530001 , 530436 , 531251 , 533846 , 540339 , 542021 , 545437 , 556911 , 567779 , 572339 , 576690 , 578631 , 581850 , 584832 , 597216 , 600011 , 620198 , 620217 , 621259 , 622241 , 624742 , 625660 , 628334 , 630635 , 631256 , 633736 , 633796 , 634512 , 637001 , 637017 , 639745 , 639824 , 641953 , 644913 , 646771 , 647893 , 648220 , 666853 , 698102 , 703364 , 715544 );
Copy