4
9.29 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
751047
746625
668510
797577
808441
774087
719209
794505
797557
778037
789495
737417
802597
785755
542356
665804
666663
760474
724431
528706
688100
733020
629966
638790
606749
590925
758831
807998
534318
701049
688632
623645
794509
802113
522861
566785
698451
653227
576319
599997
799573
11718
460109
471939
543393
674378
620134
481668
537117
556651
673964
576712
603643
776544
758143
509685
514926
524203
543852
713564
598464
649893
756395
]
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 (751047 , 746625 , 668510 , 797577 , 808441 , 774087 , 719209 , 794505 , 797557 , 778037 , 789495 , 737417 , 802597 , 785755 , 542356 , 665804 , 666663 , 760474 , 724431 , 528706 , 688100 , 733020 , 629966 , 638790 , 606749 , 590925 , 758831 , 807998 , 534318 , 701049 , 688632 , 623645 , 794509 , 802113 , 522861 , 566785 , 698451 , 653227 , 576319 , 599997 , 799573 , 11718 , 460109 , 471939 , 543393 , 674378 , 620134 , 481668 , 537117 , 556651 , 673964 , 576712 , 603643 , 776544 , 758143 , 509685 , 514926 , 524203 , 543852 , 713564 , 598464 , 649893 , 756395 );
Copy
5
2.24 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
11718
460109
471939
481668
509685
514926
522861
524203
528706
534318
537117
542356
543393
543852
556651
566785
576319
576712
590925
598464
599997
603643
606749
620134
623645
629966
638790
649893
653227
665804
666663
668510
673964
674378
688100
688632
698451
701049
713564
719209
724431
733020
737417
746625
751047
756395
758143
758831
760474
774087
776544
778037
785755
789495
794505
794509
797557
797577
799573
802113
802597
807998
808441
]
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 (11718 , 460109 , 471939 , 481668 , 509685 , 514926 , 522861 , 524203 , 528706 , 534318 , 537117 , 542356 , 543393 , 543852 , 556651 , 566785 , 576319 , 576712 , 590925 , 598464 , 599997 , 603643 , 606749 , 620134 , 623645 , 629966 , 638790 , 649893 , 653227 , 665804 , 666663 , 668510 , 673964 , 674378 , 688100 , 688632 , 698451 , 701049 , 713564 , 719209 , 724431 , 733020 , 737417 , 746625 , 751047 , 756395 , 758143 , 758831 , 760474 , 774087 , 776544 , 778037 , 785755 , 789495 , 794505 , 794509 , 797557 , 797577 , 799573 , 802113 , 802597 , 807998 , 808441 );
Copy
6
110.48 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
11718
460109
471939
481668
509685
514926
522861
524203
528706
534318
537117
542356
543393
543852
556651
566785
576319
576712
590925
598464
599997
603643
606749
620134
623645
629966
638790
649893
653227
665804
666663
668510
673964
674378
688100
688632
698451
701049
713564
719209
724431
733020
737417
746625
751047
756395
758143
758831
760474
774087
776544
778037
785755
789495
794505
794509
797557
797577
799573
802113
802597
807998
808441
]
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 (11718 , 460109 , 471939 , 481668 , 509685 , 514926 , 522861 , 524203 , 528706 , 534318 , 537117 , 542356 , 543393 , 543852 , 556651 , 566785 , 576319 , 576712 , 590925 , 598464 , 599997 , 603643 , 606749 , 620134 , 623645 , 629966 , 638790 , 649893 , 653227 , 665804 , 666663 , 668510 , 673964 , 674378 , 688100 , 688632 , 698451 , 701049 , 713564 , 719209 , 724431 , 733020 , 737417 , 746625 , 751047 , 756395 , 758143 , 758831 , 760474 , 774087 , 776544 , 778037 , 785755 , 789495 , 794505 , 794509 , 797557 , 797577 , 799573 , 802113 , 802597 , 807998 , 808441 );
Copy