3
12.13 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
439689
512374
495768
520620
532020
425990
561863
563544
571823
502974
448672
520826
446173
510360
430661
527131
682303
422205
433323
483964
481793
659386
599482
439684
539742
509256
539748
563006
421857
498427
527145
554315
467925
597857
539760
495778
582639
531431
531513
527134
417316
561381
439785
465313
439641
598984
565235
584703
564687
587901
556535
621655
608044
625215
585708
609225
599177
439774
588144
495813
574430
524348
590723
619527
]
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 (439689 , 512374 , 495768 , 520620 , 532020 , 425990 , 561863 , 563544 , 571823 , 502974 , 448672 , 520826 , 446173 , 510360 , 430661 , 527131 , 682303 , 422205 , 433323 , 483964 , 481793 , 659386 , 599482 , 439684 , 539742 , 509256 , 539748 , 563006 , 421857 , 498427 , 527145 , 554315 , 467925 , 597857 , 539760 , 495778 , 582639 , 531431 , 531513 , 527134 , 417316 , 561381 , 439785 , 465313 , 439641 , 598984 , 565235 , 584703 , 564687 , 587901 , 556535 , 621655 , 608044 , 625215 , 585708 , 609225 , 599177 , 439774 , 588144 , 495813 , 574430 , 524348 , 590723 , 619527 );
Copy
4
2.65 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
417316
421857
422205
425990
430661
433323
439641
439684
439689
439774
439785
446173
448672
465313
467925
481793
483964
495768
495778
495813
498427
502974
509256
510360
512374
520620
520826
524348
527131
527134
527145
531431
531513
532020
539742
539748
539760
554315
556535
561381
561863
563006
563544
564687
565235
571823
574430
582639
584703
585708
587901
588144
590723
597857
598984
599177
599482
608044
609225
619527
621655
625215
659386
682303
]
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 (417316 , 421857 , 422205 , 425990 , 430661 , 433323 , 439641 , 439684 , 439689 , 439774 , 439785 , 446173 , 448672 , 465313 , 467925 , 481793 , 483964 , 495768 , 495778 , 495813 , 498427 , 502974 , 509256 , 510360 , 512374 , 520620 , 520826 , 524348 , 527131 , 527134 , 527145 , 531431 , 531513 , 532020 , 539742 , 539748 , 539760 , 554315 , 556535 , 561381 , 561863 , 563006 , 563544 , 564687 , 565235 , 571823 , 574430 , 582639 , 584703 , 585708 , 587901 , 588144 , 590723 , 597857 , 598984 , 599177 , 599482 , 608044 , 609225 , 619527 , 621655 , 625215 , 659386 , 682303 );
Copy
5
88.69 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
417316
421857
422205
425990
430661
433323
439641
439684
439689
439774
439785
446173
448672
465313
467925
481793
483964
495768
495778
495813
498427
502974
509256
510360
512374
520620
520826
524348
527131
527134
527145
531431
531513
532020
539742
539748
539760
554315
556535
561381
561863
563006
563544
564687
565235
571823
574430
582639
584703
585708
587901
588144
590723
597857
598984
599177
599482
608044
609225
619527
621655
625215
659386
682303
]
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 (417316 , 421857 , 422205 , 425990 , 430661 , 433323 , 439641 , 439684 , 439689 , 439774 , 439785 , 446173 , 448672 , 465313 , 467925 , 481793 , 483964 , 495768 , 495778 , 495813 , 498427 , 502974 , 509256 , 510360 , 512374 , 520620 , 520826 , 524348 , 527131 , 527134 , 527145 , 531431 , 531513 , 532020 , 539742 , 539748 , 539760 , 554315 , 556535 , 561381 , 561863 , 563006 , 563544 , 564687 , 565235 , 571823 , 574430 , 582639 , 584703 , 585708 , 587901 , 588144 , 590723 , 597857 , 598984 , 599177 , 599482 , 608044 , 609225 , 619527 , 621655 , 625215 , 659386 , 682303 );
Copy