3
10.94 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
751370
540590
575025
478992
825954
397903
733284
532498
443188
443144
602293
817688
577602
623226
457199
478988
558117
403651
817711
749172
457376
661991
693806
787399
478990
814129
478983
532131
801182
779806
443182
457379
534848
517835
563052
643380
806534
795075
744774
474792
478986
512485
478991
493816
463313
521763
518156
474782
478985
415814
424124
443722
660834
457194
518160
792599
724637
485057
485064
523907
519512
444883
728946
421922
454141
428756
525286
604419
621764
513001
]
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 (751370 , 540590 , 575025 , 478992 , 825954 , 397903 , 733284 , 532498 , 443188 , 443144 , 602293 , 817688 , 577602 , 623226 , 457199 , 478988 , 558117 , 403651 , 817711 , 749172 , 457376 , 661991 , 693806 , 787399 , 478990 , 814129 , 478983 , 532131 , 801182 , 779806 , 443182 , 457379 , 534848 , 517835 , 563052 , 643380 , 806534 , 795075 , 744774 , 474792 , 478986 , 512485 , 478991 , 493816 , 463313 , 521763 , 518156 , 474782 , 478985 , 415814 , 424124 , 443722 , 660834 , 457194 , 518160 , 792599 , 724637 , 485057 , 485064 , 523907 , 519512 , 444883 , 728946 , 421922 , 454141 , 428756 , 525286 , 604419 , 621764 , 513001 );
Copy
4
2.56 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
397903
403651
415814
421922
424124
428756
443144
443182
443188
443722
444883
454141
457194
457199
457376
457379
463313
474782
474792
478983
478985
478986
478988
478990
478991
478992
485057
485064
493816
512485
513001
517835
518156
518160
519512
521763
523907
525286
532131
532498
534848
540590
558117
563052
575025
577602
602293
604419
621764
623226
643380
660834
661991
693806
724637
728946
733284
744774
749172
751370
779806
787399
792599
795075
801182
806534
814129
817688
817711
825954
]
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 (397903 , 403651 , 415814 , 421922 , 424124 , 428756 , 443144 , 443182 , 443188 , 443722 , 444883 , 454141 , 457194 , 457199 , 457376 , 457379 , 463313 , 474782 , 474792 , 478983 , 478985 , 478986 , 478988 , 478990 , 478991 , 478992 , 485057 , 485064 , 493816 , 512485 , 513001 , 517835 , 518156 , 518160 , 519512 , 521763 , 523907 , 525286 , 532131 , 532498 , 534848 , 540590 , 558117 , 563052 , 575025 , 577602 , 602293 , 604419 , 621764 , 623226 , 643380 , 660834 , 661991 , 693806 , 724637 , 728946 , 733284 , 744774 , 749172 , 751370 , 779806 , 787399 , 792599 , 795075 , 801182 , 806534 , 814129 , 817688 , 817711 , 825954 );
Copy
5
117.58 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
397903
403651
415814
421922
424124
428756
443144
443182
443188
443722
444883
454141
457194
457199
457376
457379
463313
474782
474792
478983
478985
478986
478988
478990
478991
478992
485057
485064
493816
512485
513001
517835
518156
518160
519512
521763
523907
525286
532131
532498
534848
540590
558117
563052
575025
577602
602293
604419
621764
623226
643380
660834
661991
693806
724637
728946
733284
744774
749172
751370
779806
787399
792599
795075
801182
806534
814129
817688
817711
825954
]
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 (397903 , 403651 , 415814 , 421922 , 424124 , 428756 , 443144 , 443182 , 443188 , 443722 , 444883 , 454141 , 457194 , 457199 , 457376 , 457379 , 463313 , 474782 , 474792 , 478983 , 478985 , 478986 , 478988 , 478990 , 478991 , 478992 , 485057 , 485064 , 493816 , 512485 , 513001 , 517835 , 518156 , 518160 , 519512 , 521763 , 523907 , 525286 , 532131 , 532498 , 534848 , 540590 , 558117 , 563052 , 575025 , 577602 , 602293 , 604419 , 621764 , 623226 , 643380 , 660834 , 661991 , 693806 , 724637 , 728946 , 733284 , 744774 , 749172 , 751370 , 779806 , 787399 , 792599 , 795075 , 801182 , 806534 , 814129 , 817688 , 817711 , 825954 );
Copy