3
16.17 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
643415
814883
402092
410324
397662
423480
421328
643050
814850
640716
668549
815963
472247
770271
557526
451983
530777
601347
689382
615801
782420
726716
465886
634842
750782
804686
744481
792591
416384
447882
573776
404722
802512
409948
628677
785667
768944
619011
824345
804594
801526
421235
185159
602072
726530
726702
737188
741190
122425
726550
559936
726528
823540
529903
527415
556415
505460
435715
735538
682248
712777
732443
459229
448705
383326
448350
457847
415188
453754
655838
662556
528921
499800
443112
559389
]
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 (643415 , 814883 , 402092 , 410324 , 397662 , 423480 , 421328 , 643050 , 814850 , 640716 , 668549 , 815963 , 472247 , 770271 , 557526 , 451983 , 530777 , 601347 , 689382 , 615801 , 782420 , 726716 , 465886 , 634842 , 750782 , 804686 , 744481 , 792591 , 416384 , 447882 , 573776 , 404722 , 802512 , 409948 , 628677 , 785667 , 768944 , 619011 , 824345 , 804594 , 801526 , 421235 , 185159 , 602072 , 726530 , 726702 , 737188 , 741190 , 122425 , 726550 , 559936 , 726528 , 823540 , 529903 , 527415 , 556415 , 505460 , 435715 , 735538 , 682248 , 712777 , 732443 , 459229 , 448705 , 383326 , 448350 , 457847 , 415188 , 453754 , 655838 , 662556 , 528921 , 499800 , 443112 , 559389 );
Copy
4
2.63 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
122425
185159
383326
397662
402092
404722
409948
410324
415188
416384
421235
421328
423480
435715
443112
447882
448350
448705
451983
453754
457847
459229
465886
472247
499800
505460
527415
528921
529903
530777
556415
557526
559389
559936
573776
601347
602072
615801
619011
628677
634842
640716
643050
643415
655838
662556
668549
682248
689382
712777
726528
726530
726550
726702
726716
732443
735538
737188
741190
744481
750782
768944
770271
782420
785667
792591
801526
802512
804594
804686
814850
814883
815963
823540
824345
]
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 (122425 , 185159 , 383326 , 397662 , 402092 , 404722 , 409948 , 410324 , 415188 , 416384 , 421235 , 421328 , 423480 , 435715 , 443112 , 447882 , 448350 , 448705 , 451983 , 453754 , 457847 , 459229 , 465886 , 472247 , 499800 , 505460 , 527415 , 528921 , 529903 , 530777 , 556415 , 557526 , 559389 , 559936 , 573776 , 601347 , 602072 , 615801 , 619011 , 628677 , 634842 , 640716 , 643050 , 643415 , 655838 , 662556 , 668549 , 682248 , 689382 , 712777 , 726528 , 726530 , 726550 , 726702 , 726716 , 732443 , 735538 , 737188 , 741190 , 744481 , 750782 , 768944 , 770271 , 782420 , 785667 , 792591 , 801526 , 802512 , 804594 , 804686 , 814850 , 814883 , 815963 , 823540 , 824345 );
Copy
5
103.25 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
122425
185159
383326
397662
402092
404722
409948
410324
415188
416384
421235
421328
423480
435715
443112
447882
448350
448705
451983
453754
457847
459229
465886
472247
499800
505460
527415
528921
529903
530777
556415
557526
559389
559936
573776
601347
602072
615801
619011
628677
634842
640716
643050
643415
655838
662556
668549
682248
689382
712777
726528
726530
726550
726702
726716
732443
735538
737188
741190
744481
750782
768944
770271
782420
785667
792591
801526
802512
804594
804686
814850
814883
815963
823540
824345
]
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 (122425 , 185159 , 383326 , 397662 , 402092 , 404722 , 409948 , 410324 , 415188 , 416384 , 421235 , 421328 , 423480 , 435715 , 443112 , 447882 , 448350 , 448705 , 451983 , 453754 , 457847 , 459229 , 465886 , 472247 , 499800 , 505460 , 527415 , 528921 , 529903 , 530777 , 556415 , 557526 , 559389 , 559936 , 573776 , 601347 , 602072 , 615801 , 619011 , 628677 , 634842 , 640716 , 643050 , 643415 , 655838 , 662556 , 668549 , 682248 , 689382 , 712777 , 726528 , 726530 , 726550 , 726702 , 726716 , 732443 , 735538 , 737188 , 741190 , 744481 , 750782 , 768944 , 770271 , 782420 , 785667 , 792591 , 801526 , 802512 , 804594 , 804686 , 814850 , 814883 , 815963 , 823540 , 824345 );
Copy