3
7.92 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
564546
546651
716134
719773
578847
587158
638181
623961
727743
743531
764342
714026
788336
455770
492969
499750
493539
787027
649651
726348
773963
729276
503983
496295
530178
496614
553962
569095
569554
557268
615366
784776
728966
801514
802914
483510
503317
529469
462564
810482
480743
453603
509743
463004
475551
485386
498294
513081
522250
495988
519785
616760
626915
461805
495782
508786
524344
450529
542751
556665
460742
468916
520861
537268
541572
605879
466206
]
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 (564546 , 546651 , 716134 , 719773 , 578847 , 587158 , 638181 , 623961 , 727743 , 743531 , 764342 , 714026 , 788336 , 455770 , 492969 , 499750 , 493539 , 787027 , 649651 , 726348 , 773963 , 729276 , 503983 , 496295 , 530178 , 496614 , 553962 , 569095 , 569554 , 557268 , 615366 , 784776 , 728966 , 801514 , 802914 , 483510 , 503317 , 529469 , 462564 , 810482 , 480743 , 453603 , 509743 , 463004 , 475551 , 485386 , 498294 , 513081 , 522250 , 495988 , 519785 , 616760 , 626915 , 461805 , 495782 , 508786 , 524344 , 450529 , 542751 , 556665 , 460742 , 468916 , 520861 , 537268 , 541572 , 605879 , 466206 );
Copy
4
2.15 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
450529
453603
455770
460742
461805
462564
463004
466206
468916
475551
480743
483510
485386
492969
493539
495782
495988
496295
496614
498294
499750
503317
503983
508786
509743
513081
519785
520861
522250
524344
529469
530178
537268
541572
542751
546651
553962
556665
557268
564546
569095
569554
578847
587158
605879
615366
616760
623961
626915
638181
649651
714026
716134
719773
726348
727743
728966
729276
743531
764342
773963
784776
787027
788336
801514
802914
810482
]
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 (450529 , 453603 , 455770 , 460742 , 461805 , 462564 , 463004 , 466206 , 468916 , 475551 , 480743 , 483510 , 485386 , 492969 , 493539 , 495782 , 495988 , 496295 , 496614 , 498294 , 499750 , 503317 , 503983 , 508786 , 509743 , 513081 , 519785 , 520861 , 522250 , 524344 , 529469 , 530178 , 537268 , 541572 , 542751 , 546651 , 553962 , 556665 , 557268 , 564546 , 569095 , 569554 , 578847 , 587158 , 605879 , 615366 , 616760 , 623961 , 626915 , 638181 , 649651 , 714026 , 716134 , 719773 , 726348 , 727743 , 728966 , 729276 , 743531 , 764342 , 773963 , 784776 , 787027 , 788336 , 801514 , 802914 , 810482 );
Copy
5
133.01 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
450529
453603
455770
460742
461805
462564
463004
466206
468916
475551
480743
483510
485386
492969
493539
495782
495988
496295
496614
498294
499750
503317
503983
508786
509743
513081
519785
520861
522250
524344
529469
530178
537268
541572
542751
546651
553962
556665
557268
564546
569095
569554
578847
587158
605879
615366
616760
623961
626915
638181
649651
714026
716134
719773
726348
727743
728966
729276
743531
764342
773963
784776
787027
788336
801514
802914
810482
]
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 (450529 , 453603 , 455770 , 460742 , 461805 , 462564 , 463004 , 466206 , 468916 , 475551 , 480743 , 483510 , 485386 , 492969 , 493539 , 495782 , 495988 , 496295 , 496614 , 498294 , 499750 , 503317 , 503983 , 508786 , 509743 , 513081 , 519785 , 520861 , 522250 , 524344 , 529469 , 530178 , 537268 , 541572 , 542751 , 546651 , 553962 , 556665 , 557268 , 564546 , 569095 , 569554 , 578847 , 587158 , 605879 , 615366 , 616760 , 623961 , 626915 , 638181 , 649651 , 714026 , 716134 , 719773 , 726348 , 727743 , 728966 , 729276 , 743531 , 764342 , 773963 , 784776 , 787027 , 788336 , 801514 , 802914 , 810482 );
Copy