3
9.36 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
732408
787993
825526
740194
788012
648394
592766
790459
665826
607586
827553
766459
532512
790547
810463
817965
722248
780855
811574
813444
759602
605067
675430
650263
728225
801799
765810
423956
508802
808293
489347
562736
812743
803374
465700
593987
493937
675721
583313
521109
587214
669062
713727
757974
508282
581580
605196
605249
396413
629428
675675
675660
675723
560314
579171
605074
441237
509543
675429
675431
675696
517330
606377
521156
516633
435108
675123
605105
]
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 (732408 , 787993 , 825526 , 740194 , 788012 , 648394 , 592766 , 790459 , 665826 , 607586 , 827553 , 766459 , 532512 , 790547 , 810463 , 817965 , 722248 , 780855 , 811574 , 813444 , 759602 , 605067 , 675430 , 650263 , 728225 , 801799 , 765810 , 423956 , 508802 , 808293 , 489347 , 562736 , 812743 , 803374 , 465700 , 593987 , 493937 , 675721 , 583313 , 521109 , 587214 , 669062 , 713727 , 757974 , 508282 , 581580 , 605196 , 605249 , 396413 , 629428 , 675675 , 675660 , 675723 , 560314 , 579171 , 605074 , 441237 , 509543 , 675429 , 675431 , 675696 , 517330 , 606377 , 521156 , 516633 , 435108 , 675123 , 605105 );
Copy
4
2.30 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
396413
423956
435108
441237
465700
489347
493937
508282
508802
509543
516633
517330
521109
521156
532512
560314
562736
579171
581580
583313
587214
592766
593987
605067
605074
605105
605196
605249
606377
607586
629428
648394
650263
665826
669062
675123
675429
675430
675431
675660
675675
675696
675721
675723
713727
722248
728225
732408
740194
757974
759602
765810
766459
780855
787993
788012
790459
790547
801799
803374
808293
810463
811574
812743
813444
817965
825526
827553
]
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 (396413 , 423956 , 435108 , 441237 , 465700 , 489347 , 493937 , 508282 , 508802 , 509543 , 516633 , 517330 , 521109 , 521156 , 532512 , 560314 , 562736 , 579171 , 581580 , 583313 , 587214 , 592766 , 593987 , 605067 , 605074 , 605105 , 605196 , 605249 , 606377 , 607586 , 629428 , 648394 , 650263 , 665826 , 669062 , 675123 , 675429 , 675430 , 675431 , 675660 , 675675 , 675696 , 675721 , 675723 , 713727 , 722248 , 728225 , 732408 , 740194 , 757974 , 759602 , 765810 , 766459 , 780855 , 787993 , 788012 , 790459 , 790547 , 801799 , 803374 , 808293 , 810463 , 811574 , 812743 , 813444 , 817965 , 825526 , 827553 );
Copy
5
84.16 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
396413
423956
435108
441237
465700
489347
493937
508282
508802
509543
516633
517330
521109
521156
532512
560314
562736
579171
581580
583313
587214
592766
593987
605067
605074
605105
605196
605249
606377
607586
629428
648394
650263
665826
669062
675123
675429
675430
675431
675660
675675
675696
675721
675723
713727
722248
728225
732408
740194
757974
759602
765810
766459
780855
787993
788012
790459
790547
801799
803374
808293
810463
811574
812743
813444
817965
825526
827553
]
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 (396413 , 423956 , 435108 , 441237 , 465700 , 489347 , 493937 , 508282 , 508802 , 509543 , 516633 , 517330 , 521109 , 521156 , 532512 , 560314 , 562736 , 579171 , 581580 , 583313 , 587214 , 592766 , 593987 , 605067 , 605074 , 605105 , 605196 , 605249 , 606377 , 607586 , 629428 , 648394 , 650263 , 665826 , 669062 , 675123 , 675429 , 675430 , 675431 , 675660 , 675675 , 675696 , 675721 , 675723 , 713727 , 722248 , 728225 , 732408 , 740194 , 757974 , 759602 , 765810 , 766459 , 780855 , 787993 , 788012 , 790459 , 790547 , 801799 , 803374 , 808293 , 810463 , 811574 , 812743 , 813444 , 817965 , 825526 , 827553 );
Copy