4
10.82 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
535250
797407
796181
771468
784243
824237
824335
755143
772010
715140
793562
441997
417106
710926
626121
621005
670668
710754
775330
801663
682918
710074
577813
636008
772332
457328
610275
726081
739530
764715
710706
543931
709704
610813
435743
505998
528129
557433
785849
504946
461323
580061
506023
489342
511772
517282
512972
516794
789635
738612
827445
720737
728373
785325
561998
720192
796141
746495
723167
713927
434491
802386
559423
624652
726232
755223
770292
507008
557007
435100
505846
523422
]
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 (535250 , 797407 , 796181 , 771468 , 784243 , 824237 , 824335 , 755143 , 772010 , 715140 , 793562 , 441997 , 417106 , 710926 , 626121 , 621005 , 670668 , 710754 , 775330 , 801663 , 682918 , 710074 , 577813 , 636008 , 772332 , 457328 , 610275 , 726081 , 739530 , 764715 , 710706 , 543931 , 709704 , 610813 , 435743 , 505998 , 528129 , 557433 , 785849 , 504946 , 461323 , 580061 , 506023 , 489342 , 511772 , 517282 , 512972 , 516794 , 789635 , 738612 , 827445 , 720737 , 728373 , 785325 , 561998 , 720192 , 796141 , 746495 , 723167 , 713927 , 434491 , 802386 , 559423 , 624652 , 726232 , 755223 , 770292 , 507008 , 557007 , 435100 , 505846 , 523422 );
Copy
5
2.74 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
417106
434491
435100
435743
441997
457328
461323
489342
504946
505846
505998
506023
507008
511772
512972
516794
517282
523422
528129
535250
543931
557007
557433
559423
561998
577813
580061
610275
610813
621005
624652
626121
636008
670668
682918
709704
710074
710706
710754
710926
713927
715140
720192
720737
723167
726081
726232
728373
738612
739530
746495
755143
755223
764715
770292
771468
772010
772332
775330
784243
785325
785849
789635
793562
796141
796181
797407
801663
802386
824237
824335
827445
]
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 (417106 , 434491 , 435100 , 435743 , 441997 , 457328 , 461323 , 489342 , 504946 , 505846 , 505998 , 506023 , 507008 , 511772 , 512972 , 516794 , 517282 , 523422 , 528129 , 535250 , 543931 , 557007 , 557433 , 559423 , 561998 , 577813 , 580061 , 610275 , 610813 , 621005 , 624652 , 626121 , 636008 , 670668 , 682918 , 709704 , 710074 , 710706 , 710754 , 710926 , 713927 , 715140 , 720192 , 720737 , 723167 , 726081 , 726232 , 728373 , 738612 , 739530 , 746495 , 755143 , 755223 , 764715 , 770292 , 771468 , 772010 , 772332 , 775330 , 784243 , 785325 , 785849 , 789635 , 793562 , 796141 , 796181 , 797407 , 801663 , 802386 , 824237 , 824335 , 827445 );
Copy
6
176.44 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
417106
434491
435100
435743
441997
457328
461323
489342
504946
505846
505998
506023
507008
511772
512972
516794
517282
523422
528129
535250
543931
557007
557433
559423
561998
577813
580061
610275
610813
621005
624652
626121
636008
670668
682918
709704
710074
710706
710754
710926
713927
715140
720192
720737
723167
726081
726232
728373
738612
739530
746495
755143
755223
764715
770292
771468
772010
772332
775330
784243
785325
785849
789635
793562
796141
796181
797407
801663
802386
824237
824335
827445
]
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 (417106 , 434491 , 435100 , 435743 , 441997 , 457328 , 461323 , 489342 , 504946 , 505846 , 505998 , 506023 , 507008 , 511772 , 512972 , 516794 , 517282 , 523422 , 528129 , 535250 , 543931 , 557007 , 557433 , 559423 , 561998 , 577813 , 580061 , 610275 , 610813 , 621005 , 624652 , 626121 , 636008 , 670668 , 682918 , 709704 , 710074 , 710706 , 710754 , 710926 , 713927 , 715140 , 720192 , 720737 , 723167 , 726081 , 726232 , 728373 , 738612 , 739530 , 746495 , 755143 , 755223 , 764715 , 770292 , 771468 , 772010 , 772332 , 775330 , 784243 , 785325 , 785849 , 789635 , 793562 , 796141 , 796181 , 797407 , 801663 , 802386 , 824237 , 824335 , 827445 );
Copy