3
10.10 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
767975
562761
737541
679196
823794
819099
572958
828247
731147
707390
710819
782784
783748
727899
819517
734262
736500
639895
560696
565827
798714
710338
549518
711631
392511
746028
724405
823884
815506
721954
540664
670211
628014
391739
819436
428446
641593
488488
650919
740229
581090
769543
635621
407122
551797
459666
452371
461699
551783
435973
458013
770101
561252
532424
597528
403797
425711
534345
475338
417823
507309
468048
521353
]
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 (767975 , 562761 , 737541 , 679196 , 823794 , 819099 , 572958 , 828247 , 731147 , 707390 , 710819 , 782784 , 783748 , 727899 , 819517 , 734262 , 736500 , 639895 , 560696 , 565827 , 798714 , 710338 , 549518 , 711631 , 392511 , 746028 , 724405 , 823884 , 815506 , 721954 , 540664 , 670211 , 628014 , 391739 , 819436 , 428446 , 641593 , 488488 , 650919 , 740229 , 581090 , 769543 , 635621 , 407122 , 551797 , 459666 , 452371 , 461699 , 551783 , 435973 , 458013 , 770101 , 561252 , 532424 , 597528 , 403797 , 425711 , 534345 , 475338 , 417823 , 507309 , 468048 , 521353 );
Copy
4
2.82 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
391739
392511
403797
407122
417823
425711
428446
435973
452371
458013
459666
461699
468048
475338
488488
507309
521353
532424
534345
540664
549518
551783
551797
560696
561252
562761
565827
572958
581090
597528
628014
635621
639895
641593
650919
670211
679196
707390
710338
710819
711631
721954
724405
727899
731147
734262
736500
737541
740229
746028
767975
769543
770101
782784
783748
798714
815506
819099
819436
819517
823794
823884
828247
]
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 (391739 , 392511 , 403797 , 407122 , 417823 , 425711 , 428446 , 435973 , 452371 , 458013 , 459666 , 461699 , 468048 , 475338 , 488488 , 507309 , 521353 , 532424 , 534345 , 540664 , 549518 , 551783 , 551797 , 560696 , 561252 , 562761 , 565827 , 572958 , 581090 , 597528 , 628014 , 635621 , 639895 , 641593 , 650919 , 670211 , 679196 , 707390 , 710338 , 710819 , 711631 , 721954 , 724405 , 727899 , 731147 , 734262 , 736500 , 737541 , 740229 , 746028 , 767975 , 769543 , 770101 , 782784 , 783748 , 798714 , 815506 , 819099 , 819436 , 819517 , 823794 , 823884 , 828247 );
Copy
5
490.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
391739
392511
403797
407122
417823
425711
428446
435973
452371
458013
459666
461699
468048
475338
488488
507309
521353
532424
534345
540664
549518
551783
551797
560696
561252
562761
565827
572958
581090
597528
628014
635621
639895
641593
650919
670211
679196
707390
710338
710819
711631
721954
724405
727899
731147
734262
736500
737541
740229
746028
767975
769543
770101
782784
783748
798714
815506
819099
819436
819517
823794
823884
828247
]
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 (391739 , 392511 , 403797 , 407122 , 417823 , 425711 , 428446 , 435973 , 452371 , 458013 , 459666 , 461699 , 468048 , 475338 , 488488 , 507309 , 521353 , 532424 , 534345 , 540664 , 549518 , 551783 , 551797 , 560696 , 561252 , 562761 , 565827 , 572958 , 581090 , 597528 , 628014 , 635621 , 639895 , 641593 , 650919 , 670211 , 679196 , 707390 , 710338 , 710819 , 711631 , 721954 , 724405 , 727899 , 731147 , 734262 , 736500 , 737541 , 740229 , 746028 , 767975 , 769543 , 770101 , 782784 , 783748 , 798714 , 815506 , 819099 , 819436 , 819517 , 823794 , 823884 , 828247 );
Copy