3
9.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
458227
805173
792421
818755
819912
810287
824515
828427
776679
509542
623956
730941
807269
614004
472357
697205
587104
802520
732616
794470
437705
526802
710168
609572
803256
605065
727343
731093
764754
789605
725468
801675
731315
613320
745193
766306
733332
577525
657777
625915
441956
446845
453041
648262
617014
512739
555973
555667
631466
808044
490242
493017
515786
472784
586622
500963
496593
487472
551795
693952
424147
617175
623615
]
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 (458227 , 805173 , 792421 , 818755 , 819912 , 810287 , 824515 , 828427 , 776679 , 509542 , 623956 , 730941 , 807269 , 614004 , 472357 , 697205 , 587104 , 802520 , 732616 , 794470 , 437705 , 526802 , 710168 , 609572 , 803256 , 605065 , 727343 , 731093 , 764754 , 789605 , 725468 , 801675 , 731315 , 613320 , 745193 , 766306 , 733332 , 577525 , 657777 , 625915 , 441956 , 446845 , 453041 , 648262 , 617014 , 512739 , 555973 , 555667 , 631466 , 808044 , 490242 , 493017 , 515786 , 472784 , 586622 , 500963 , 496593 , 487472 , 551795 , 693952 , 424147 , 617175 , 623615 );
Copy
4
2.94 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
424147
437705
441956
446845
453041
458227
472357
472784
487472
490242
493017
496593
500963
509542
512739
515786
526802
551795
555667
555973
577525
586622
587104
605065
609572
613320
614004
617014
617175
623615
623956
625915
631466
648262
657777
693952
697205
710168
725468
727343
730941
731093
731315
732616
733332
745193
764754
766306
776679
789605
792421
794470
801675
802520
803256
805173
807269
808044
810287
818755
819912
824515
828427
]
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 (424147 , 437705 , 441956 , 446845 , 453041 , 458227 , 472357 , 472784 , 487472 , 490242 , 493017 , 496593 , 500963 , 509542 , 512739 , 515786 , 526802 , 551795 , 555667 , 555973 , 577525 , 586622 , 587104 , 605065 , 609572 , 613320 , 614004 , 617014 , 617175 , 623615 , 623956 , 625915 , 631466 , 648262 , 657777 , 693952 , 697205 , 710168 , 725468 , 727343 , 730941 , 731093 , 731315 , 732616 , 733332 , 745193 , 764754 , 766306 , 776679 , 789605 , 792421 , 794470 , 801675 , 802520 , 803256 , 805173 , 807269 , 808044 , 810287 , 818755 , 819912 , 824515 , 828427 );
Copy
5
90.27 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
424147
437705
441956
446845
453041
458227
472357
472784
487472
490242
493017
496593
500963
509542
512739
515786
526802
551795
555667
555973
577525
586622
587104
605065
609572
613320
614004
617014
617175
623615
623956
625915
631466
648262
657777
693952
697205
710168
725468
727343
730941
731093
731315
732616
733332
745193
764754
766306
776679
789605
792421
794470
801675
802520
803256
805173
807269
808044
810287
818755
819912
824515
828427
]
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 (424147 , 437705 , 441956 , 446845 , 453041 , 458227 , 472357 , 472784 , 487472 , 490242 , 493017 , 496593 , 500963 , 509542 , 512739 , 515786 , 526802 , 551795 , 555667 , 555973 , 577525 , 586622 , 587104 , 605065 , 609572 , 613320 , 614004 , 617014 , 617175 , 623615 , 623956 , 625915 , 631466 , 648262 , 657777 , 693952 , 697205 , 710168 , 725468 , 727343 , 730941 , 731093 , 731315 , 732616 , 733332 , 745193 , 764754 , 766306 , 776679 , 789605 , 792421 , 794470 , 801675 , 802520 , 803256 , 805173 , 807269 , 808044 , 810287 , 818755 , 819912 , 824515 , 828427 );
Copy