3
8.87 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
730938
726150
707251
725766
622891
791716
619387
509525
617384
808237
716581
686321
617394
765084
673038
791059
673860
673836
527045
506871
778256
792469
619384
762564
681795
650913
687447
727905
759372
704188
773458
621615
666392
795005
697732
748393
677289
607639
790073
751829
790056
681490
726082
694955
786137
787843
783749
641203
533263
783625
804056
812792
444378
400888
500649
540500
788999
524421
483638
494627
588494
546326
695163
559453
446682
486621
625212
532028
559155
]
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 (730938 , 726150 , 707251 , 725766 , 622891 , 791716 , 619387 , 509525 , 617384 , 808237 , 716581 , 686321 , 617394 , 765084 , 673038 , 791059 , 673860 , 673836 , 527045 , 506871 , 778256 , 792469 , 619384 , 762564 , 681795 , 650913 , 687447 , 727905 , 759372 , 704188 , 773458 , 621615 , 666392 , 795005 , 697732 , 748393 , 677289 , 607639 , 790073 , 751829 , 790056 , 681490 , 726082 , 694955 , 786137 , 787843 , 783749 , 641203 , 533263 , 783625 , 804056 , 812792 , 444378 , 400888 , 500649 , 540500 , 788999 , 524421 , 483638 , 494627 , 588494 , 546326 , 695163 , 559453 , 446682 , 486621 , 625212 , 532028 , 559155 );
Copy
4
2.96 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
400888
444378
446682
483638
486621
494627
500649
506871
509525
524421
527045
532028
533263
540500
546326
559155
559453
588494
607639
617384
617394
619384
619387
621615
622891
625212
641203
650913
666392
673038
673836
673860
677289
681490
681795
686321
687447
694955
695163
697732
704188
707251
716581
725766
726082
726150
727905
730938
748393
751829
759372
762564
765084
773458
778256
783625
783749
786137
787843
788999
790056
790073
791059
791716
792469
795005
804056
808237
812792
]
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 (400888 , 444378 , 446682 , 483638 , 486621 , 494627 , 500649 , 506871 , 509525 , 524421 , 527045 , 532028 , 533263 , 540500 , 546326 , 559155 , 559453 , 588494 , 607639 , 617384 , 617394 , 619384 , 619387 , 621615 , 622891 , 625212 , 641203 , 650913 , 666392 , 673038 , 673836 , 673860 , 677289 , 681490 , 681795 , 686321 , 687447 , 694955 , 695163 , 697732 , 704188 , 707251 , 716581 , 725766 , 726082 , 726150 , 727905 , 730938 , 748393 , 751829 , 759372 , 762564 , 765084 , 773458 , 778256 , 783625 , 783749 , 786137 , 787843 , 788999 , 790056 , 790073 , 791059 , 791716 , 792469 , 795005 , 804056 , 808237 , 812792 );
Copy
5
89.53 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
400888
444378
446682
483638
486621
494627
500649
506871
509525
524421
527045
532028
533263
540500
546326
559155
559453
588494
607639
617384
617394
619384
619387
621615
622891
625212
641203
650913
666392
673038
673836
673860
677289
681490
681795
686321
687447
694955
695163
697732
704188
707251
716581
725766
726082
726150
727905
730938
748393
751829
759372
762564
765084
773458
778256
783625
783749
786137
787843
788999
790056
790073
791059
791716
792469
795005
804056
808237
812792
]
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 (400888 , 444378 , 446682 , 483638 , 486621 , 494627 , 500649 , 506871 , 509525 , 524421 , 527045 , 532028 , 533263 , 540500 , 546326 , 559155 , 559453 , 588494 , 607639 , 617384 , 617394 , 619384 , 619387 , 621615 , 622891 , 625212 , 641203 , 650913 , 666392 , 673038 , 673836 , 673860 , 677289 , 681490 , 681795 , 686321 , 687447 , 694955 , 695163 , 697732 , 704188 , 707251 , 716581 , 725766 , 726082 , 726150 , 727905 , 730938 , 748393 , 751829 , 759372 , 762564 , 765084 , 773458 , 778256 , 783625 , 783749 , 786137 , 787843 , 788999 , 790056 , 790073 , 791059 , 791716 , 792469 , 795005 , 804056 , 808237 , 812792 );
Copy