3
9.12 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
788327
738919
619903
805553
508303
173107
605333
818577
449021
490953
505239
419979
133695
536786
665051
639669
420527
518380
593384
675866
657865
389700
489376
586498
601325
605607
671817
527249
572765
790677
550324
805149
485336
527531
434108
440635
448088
469233
521353
488100
602009
523954
515416
427174
428710
579331
760736
500600
542969
568446
605345
605182
541833
492604
555991
801907
512339
528108
504841
524199
609795
484017
496564
]
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 (788327 , 738919 , 619903 , 805553 , 508303 , 173107 , 605333 , 818577 , 449021 , 490953 , 505239 , 419979 , 133695 , 536786 , 665051 , 639669 , 420527 , 518380 , 593384 , 675866 , 657865 , 389700 , 489376 , 586498 , 601325 , 605607 , 671817 , 527249 , 572765 , 790677 , 550324 , 805149 , 485336 , 527531 , 434108 , 440635 , 448088 , 469233 , 521353 , 488100 , 602009 , 523954 , 515416 , 427174 , 428710 , 579331 , 760736 , 500600 , 542969 , 568446 , 605345 , 605182 , 541833 , 492604 , 555991 , 801907 , 512339 , 528108 , 504841 , 524199 , 609795 , 484017 , 496564 );
Copy
4
2.19 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
133695
173107
389700
419979
420527
427174
428710
434108
440635
448088
449021
469233
484017
485336
488100
489376
490953
492604
496564
500600
504841
505239
508303
512339
515416
518380
521353
523954
524199
527249
527531
528108
536786
541833
542969
550324
555991
568446
572765
579331
586498
593384
601325
602009
605182
605333
605345
605607
609795
619903
639669
657865
665051
671817
675866
738919
760736
788327
790677
801907
805149
805553
818577
]
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 (133695 , 173107 , 389700 , 419979 , 420527 , 427174 , 428710 , 434108 , 440635 , 448088 , 449021 , 469233 , 484017 , 485336 , 488100 , 489376 , 490953 , 492604 , 496564 , 500600 , 504841 , 505239 , 508303 , 512339 , 515416 , 518380 , 521353 , 523954 , 524199 , 527249 , 527531 , 528108 , 536786 , 541833 , 542969 , 550324 , 555991 , 568446 , 572765 , 579331 , 586498 , 593384 , 601325 , 602009 , 605182 , 605333 , 605345 , 605607 , 609795 , 619903 , 639669 , 657865 , 665051 , 671817 , 675866 , 738919 , 760736 , 788327 , 790677 , 801907 , 805149 , 805553 , 818577 );
Copy
5
72.63 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
133695
173107
389700
419979
420527
427174
428710
434108
440635
448088
449021
469233
484017
485336
488100
489376
490953
492604
496564
500600
504841
505239
508303
512339
515416
518380
521353
523954
524199
527249
527531
528108
536786
541833
542969
550324
555991
568446
572765
579331
586498
593384
601325
602009
605182
605333
605345
605607
609795
619903
639669
657865
665051
671817
675866
738919
760736
788327
790677
801907
805149
805553
818577
]
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 (133695 , 173107 , 389700 , 419979 , 420527 , 427174 , 428710 , 434108 , 440635 , 448088 , 449021 , 469233 , 484017 , 485336 , 488100 , 489376 , 490953 , 492604 , 496564 , 500600 , 504841 , 505239 , 508303 , 512339 , 515416 , 518380 , 521353 , 523954 , 524199 , 527249 , 527531 , 528108 , 536786 , 541833 , 542969 , 550324 , 555991 , 568446 , 572765 , 579331 , 586498 , 593384 , 601325 , 602009 , 605182 , 605333 , 605345 , 605607 , 609795 , 619903 , 639669 , 657865 , 665051 , 671817 , 675866 , 738919 , 760736 , 788327 , 790677 , 801907 , 805149 , 805553 , 818577 );
Copy