3
14.13 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
550337
476975
423499
435472
577816
471996
521205
558566
638024
624375
604631
622233
592614
547556
430355
456362
528262
602371
594810
457130
524319
538266
527874
456809
430374
500978
513508
432843
390508
512966
523134
432582
447615
604046
429383
482768
670239
601423
505614
428756
452228
453324
530582
473476
551903
642723
533948
542218
460879
555291
524506
537970
609292
499867
608751
625572
604289
686748
583994
437204
597736
598510
575713
619965
559938
473772
441168
481910
669574
518521
516682
549860
622778
541804
610695
]
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 (550337 , 476975 , 423499 , 435472 , 577816 , 471996 , 521205 , 558566 , 638024 , 624375 , 604631 , 622233 , 592614 , 547556 , 430355 , 456362 , 528262 , 602371 , 594810 , 457130 , 524319 , 538266 , 527874 , 456809 , 430374 , 500978 , 513508 , 432843 , 390508 , 512966 , 523134 , 432582 , 447615 , 604046 , 429383 , 482768 , 670239 , 601423 , 505614 , 428756 , 452228 , 453324 , 530582 , 473476 , 551903 , 642723 , 533948 , 542218 , 460879 , 555291 , 524506 , 537970 , 609292 , 499867 , 608751 , 625572 , 604289 , 686748 , 583994 , 437204 , 597736 , 598510 , 575713 , 619965 , 559938 , 473772 , 441168 , 481910 , 669574 , 518521 , 516682 , 549860 , 622778 , 541804 , 610695 );
Copy
4
2.78 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
390508
423499
428756
429383
430355
430374
432582
432843
435472
437204
441168
447615
452228
453324
456362
456809
457130
460879
471996
473476
473772
476975
481910
482768
499867
500978
505614
512966
513508
516682
518521
521205
523134
524319
524506
527874
528262
530582
533948
537970
538266
541804
542218
547556
549860
550337
551903
555291
558566
559938
575713
577816
583994
592614
594810
597736
598510
601423
602371
604046
604289
604631
608751
609292
610695
619965
622233
622778
624375
625572
638024
642723
669574
670239
686748
]
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 (390508 , 423499 , 428756 , 429383 , 430355 , 430374 , 432582 , 432843 , 435472 , 437204 , 441168 , 447615 , 452228 , 453324 , 456362 , 456809 , 457130 , 460879 , 471996 , 473476 , 473772 , 476975 , 481910 , 482768 , 499867 , 500978 , 505614 , 512966 , 513508 , 516682 , 518521 , 521205 , 523134 , 524319 , 524506 , 527874 , 528262 , 530582 , 533948 , 537970 , 538266 , 541804 , 542218 , 547556 , 549860 , 550337 , 551903 , 555291 , 558566 , 559938 , 575713 , 577816 , 583994 , 592614 , 594810 , 597736 , 598510 , 601423 , 602371 , 604046 , 604289 , 604631 , 608751 , 609292 , 610695 , 619965 , 622233 , 622778 , 624375 , 625572 , 638024 , 642723 , 669574 , 670239 , 686748 );
Copy
5
102.92 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
390508
423499
428756
429383
430355
430374
432582
432843
435472
437204
441168
447615
452228
453324
456362
456809
457130
460879
471996
473476
473772
476975
481910
482768
499867
500978
505614
512966
513508
516682
518521
521205
523134
524319
524506
527874
528262
530582
533948
537970
538266
541804
542218
547556
549860
550337
551903
555291
558566
559938
575713
577816
583994
592614
594810
597736
598510
601423
602371
604046
604289
604631
608751
609292
610695
619965
622233
622778
624375
625572
638024
642723
669574
670239
686748
]
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 (390508 , 423499 , 428756 , 429383 , 430355 , 430374 , 432582 , 432843 , 435472 , 437204 , 441168 , 447615 , 452228 , 453324 , 456362 , 456809 , 457130 , 460879 , 471996 , 473476 , 473772 , 476975 , 481910 , 482768 , 499867 , 500978 , 505614 , 512966 , 513508 , 516682 , 518521 , 521205 , 523134 , 524319 , 524506 , 527874 , 528262 , 530582 , 533948 , 537970 , 538266 , 541804 , 542218 , 547556 , 549860 , 550337 , 551903 , 555291 , 558566 , 559938 , 575713 , 577816 , 583994 , 592614 , 594810 , 597736 , 598510 , 601423 , 602371 , 604046 , 604289 , 604631 , 608751 , 609292 , 610695 , 619965 , 622233 , 622778 , 624375 , 625572 , 638024 , 642723 , 669574 , 670239 , 686748 );
Copy