3
11.02 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
632170
613172
549337
783909
576975
695049
596468
615307
757198
784157
604822
768716
538191
384325
388378
725095
729345
623815
82252
61498
700006
726447
571647
573017
573045
573619
573682
652590
651886
707289
552077
595006
639934
613333
783486
708643
778670
415507
576414
574807
422429
447076
527627
538198
524191
576100
585703
597432
187349
540925
418650
576364
601176
505078
535736
507641
527495
581401
551525
646214
645918
573640
598475
621988
529200
]
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 (632170 , 613172 , 549337 , 783909 , 576975 , 695049 , 596468 , 615307 , 757198 , 784157 , 604822 , 768716 , 538191 , 384325 , 388378 , 725095 , 729345 , 623815 , 82252 , 61498 , 700006 , 726447 , 571647 , 573017 , 573045 , 573619 , 573682 , 652590 , 651886 , 707289 , 552077 , 595006 , 639934 , 613333 , 783486 , 708643 , 778670 , 415507 , 576414 , 574807 , 422429 , 447076 , 527627 , 538198 , 524191 , 576100 , 585703 , 597432 , 187349 , 540925 , 418650 , 576364 , 601176 , 505078 , 535736 , 507641 , 527495 , 581401 , 551525 , 646214 , 645918 , 573640 , 598475 , 621988 , 529200 );
Copy
4
3.26 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
61498
82252
187349
384325
388378
415507
418650
422429
447076
505078
507641
524191
527495
527627
529200
535736
538191
538198
540925
549337
551525
552077
571647
573017
573045
573619
573640
573682
574807
576100
576364
576414
576975
581401
585703
595006
596468
597432
598475
601176
604822
613172
613333
615307
621988
623815
632170
639934
645918
646214
651886
652590
695049
700006
707289
708643
725095
726447
729345
757198
768716
778670
783486
783909
784157
]
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 (61498 , 82252 , 187349 , 384325 , 388378 , 415507 , 418650 , 422429 , 447076 , 505078 , 507641 , 524191 , 527495 , 527627 , 529200 , 535736 , 538191 , 538198 , 540925 , 549337 , 551525 , 552077 , 571647 , 573017 , 573045 , 573619 , 573640 , 573682 , 574807 , 576100 , 576364 , 576414 , 576975 , 581401 , 585703 , 595006 , 596468 , 597432 , 598475 , 601176 , 604822 , 613172 , 613333 , 615307 , 621988 , 623815 , 632170 , 639934 , 645918 , 646214 , 651886 , 652590 , 695049 , 700006 , 707289 , 708643 , 725095 , 726447 , 729345 , 757198 , 768716 , 778670 , 783486 , 783909 , 784157 );
Copy
5
106.88 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
61498
82252
187349
384325
388378
415507
418650
422429
447076
505078
507641
524191
527495
527627
529200
535736
538191
538198
540925
549337
551525
552077
571647
573017
573045
573619
573640
573682
574807
576100
576364
576414
576975
581401
585703
595006
596468
597432
598475
601176
604822
613172
613333
615307
621988
623815
632170
639934
645918
646214
651886
652590
695049
700006
707289
708643
725095
726447
729345
757198
768716
778670
783486
783909
784157
]
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 (61498 , 82252 , 187349 , 384325 , 388378 , 415507 , 418650 , 422429 , 447076 , 505078 , 507641 , 524191 , 527495 , 527627 , 529200 , 535736 , 538191 , 538198 , 540925 , 549337 , 551525 , 552077 , 571647 , 573017 , 573045 , 573619 , 573640 , 573682 , 574807 , 576100 , 576364 , 576414 , 576975 , 581401 , 585703 , 595006 , 596468 , 597432 , 598475 , 601176 , 604822 , 613172 , 613333 , 615307 , 621988 , 623815 , 632170 , 639934 , 645918 , 646214 , 651886 , 652590 , 695049 , 700006 , 707289 , 708643 , 725095 , 726447 , 729345 , 757198 , 768716 , 778670 , 783486 , 783909 , 784157 );
Copy