3
8.81 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
797342
772194
389838
536860
538838
762123
387182
381942
721302
401871
710523
631657
475837
404994
529801
444482
527780
455861
527198
577496
564599
419132
590033
571336
586178
480406
657278
656678
659091
657307
723531
655611
658698
659155
656348
657025
623236
562221
605312
748523
562201
657064
600599
562273
598435
744927
562209
654799
562212
552650
454714
562220
562208
675797
583331
419128
655996
447888
655621
655612
656792
603907
657438
603813
]
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 (797342 , 772194 , 389838 , 536860 , 538838 , 762123 , 387182 , 381942 , 721302 , 401871 , 710523 , 631657 , 475837 , 404994 , 529801 , 444482 , 527780 , 455861 , 527198 , 577496 , 564599 , 419132 , 590033 , 571336 , 586178 , 480406 , 657278 , 656678 , 659091 , 657307 , 723531 , 655611 , 658698 , 659155 , 656348 , 657025 , 623236 , 562221 , 605312 , 748523 , 562201 , 657064 , 600599 , 562273 , 598435 , 744927 , 562209 , 654799 , 562212 , 552650 , 454714 , 562220 , 562208 , 675797 , 583331 , 419128 , 655996 , 447888 , 655621 , 655612 , 656792 , 603907 , 657438 , 603813 );
Copy
4
3.03 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
381942
387182
389838
401871
404994
419128
419132
444482
447888
454714
455861
475837
480406
527198
527780
529801
536860
538838
552650
562201
562208
562209
562212
562220
562221
562273
564599
571336
577496
583331
586178
590033
598435
600599
603813
603907
605312
623236
631657
654799
655611
655612
655621
655996
656348
656678
656792
657025
657064
657278
657307
657438
658698
659091
659155
675797
710523
721302
723531
744927
748523
762123
772194
797342
]
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 (381942 , 387182 , 389838 , 401871 , 404994 , 419128 , 419132 , 444482 , 447888 , 454714 , 455861 , 475837 , 480406 , 527198 , 527780 , 529801 , 536860 , 538838 , 552650 , 562201 , 562208 , 562209 , 562212 , 562220 , 562221 , 562273 , 564599 , 571336 , 577496 , 583331 , 586178 , 590033 , 598435 , 600599 , 603813 , 603907 , 605312 , 623236 , 631657 , 654799 , 655611 , 655612 , 655621 , 655996 , 656348 , 656678 , 656792 , 657025 , 657064 , 657278 , 657307 , 657438 , 658698 , 659091 , 659155 , 675797 , 710523 , 721302 , 723531 , 744927 , 748523 , 762123 , 772194 , 797342 );
Copy
5
72.86 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
381942
387182
389838
401871
404994
419128
419132
444482
447888
454714
455861
475837
480406
527198
527780
529801
536860
538838
552650
562201
562208
562209
562212
562220
562221
562273
564599
571336
577496
583331
586178
590033
598435
600599
603813
603907
605312
623236
631657
654799
655611
655612
655621
655996
656348
656678
656792
657025
657064
657278
657307
657438
658698
659091
659155
675797
710523
721302
723531
744927
748523
762123
772194
797342
]
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 (381942 , 387182 , 389838 , 401871 , 404994 , 419128 , 419132 , 444482 , 447888 , 454714 , 455861 , 475837 , 480406 , 527198 , 527780 , 529801 , 536860 , 538838 , 552650 , 562201 , 562208 , 562209 , 562212 , 562220 , 562221 , 562273 , 564599 , 571336 , 577496 , 583331 , 586178 , 590033 , 598435 , 600599 , 603813 , 603907 , 605312 , 623236 , 631657 , 654799 , 655611 , 655612 , 655621 , 655996 , 656348 , 656678 , 656792 , 657025 , 657064 , 657278 , 657307 , 657438 , 658698 , 659091 , 659155 , 675797 , 710523 , 721302 , 723531 , 744927 , 748523 , 762123 , 772194 , 797342 );
Copy