3
12.66 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
789300
788670
612083
741652
559605
685355
704722
805847
778419
688646
746222
730708
735826
804201
507016
781019
710579
779178
822719
402238
730466
403289
712927
722179
418641
560541
400689
395934
766695
382083
423039
405082
627726
427452
410231
540456
687500
623724
744704
453597
404276
527495
415978
814833
524910
381838
395620
551268
677963
604507
624511
439572
472712
431333
457189
470408
488959
621463
462450
514113
395894
421995
546123
605470
390642
405145
439460
477454
484797
512222
555915
508180
596839
]
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 (789300 , 788670 , 612083 , 741652 , 559605 , 685355 , 704722 , 805847 , 778419 , 688646 , 746222 , 730708 , 735826 , 804201 , 507016 , 781019 , 710579 , 779178 , 822719 , 402238 , 730466 , 403289 , 712927 , 722179 , 418641 , 560541 , 400689 , 395934 , 766695 , 382083 , 423039 , 405082 , 627726 , 427452 , 410231 , 540456 , 687500 , 623724 , 744704 , 453597 , 404276 , 527495 , 415978 , 814833 , 524910 , 381838 , 395620 , 551268 , 677963 , 604507 , 624511 , 439572 , 472712 , 431333 , 457189 , 470408 , 488959 , 621463 , 462450 , 514113 , 395894 , 421995 , 546123 , 605470 , 390642 , 405145 , 439460 , 477454 , 484797 , 512222 , 555915 , 508180 , 596839 );
Copy
4
2.87 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
381838
382083
390642
395620
395894
395934
400689
402238
403289
404276
405082
405145
410231
415978
418641
421995
423039
427452
431333
439460
439572
453597
457189
462450
470408
472712
477454
484797
488959
507016
508180
512222
514113
524910
527495
540456
546123
551268
555915
559605
560541
596839
604507
605470
612083
621463
623724
624511
627726
677963
685355
687500
688646
704722
710579
712927
722179
730466
730708
735826
741652
744704
746222
766695
778419
779178
781019
788670
789300
804201
805847
814833
822719
]
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 (381838 , 382083 , 390642 , 395620 , 395894 , 395934 , 400689 , 402238 , 403289 , 404276 , 405082 , 405145 , 410231 , 415978 , 418641 , 421995 , 423039 , 427452 , 431333 , 439460 , 439572 , 453597 , 457189 , 462450 , 470408 , 472712 , 477454 , 484797 , 488959 , 507016 , 508180 , 512222 , 514113 , 524910 , 527495 , 540456 , 546123 , 551268 , 555915 , 559605 , 560541 , 596839 , 604507 , 605470 , 612083 , 621463 , 623724 , 624511 , 627726 , 677963 , 685355 , 687500 , 688646 , 704722 , 710579 , 712927 , 722179 , 730466 , 730708 , 735826 , 741652 , 744704 , 746222 , 766695 , 778419 , 779178 , 781019 , 788670 , 789300 , 804201 , 805847 , 814833 , 822719 );
Copy
5
144.34 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
381838
382083
390642
395620
395894
395934
400689
402238
403289
404276
405082
405145
410231
415978
418641
421995
423039
427452
431333
439460
439572
453597
457189
462450
470408
472712
477454
484797
488959
507016
508180
512222
514113
524910
527495
540456
546123
551268
555915
559605
560541
596839
604507
605470
612083
621463
623724
624511
627726
677963
685355
687500
688646
704722
710579
712927
722179
730466
730708
735826
741652
744704
746222
766695
778419
779178
781019
788670
789300
804201
805847
814833
822719
]
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 (381838 , 382083 , 390642 , 395620 , 395894 , 395934 , 400689 , 402238 , 403289 , 404276 , 405082 , 405145 , 410231 , 415978 , 418641 , 421995 , 423039 , 427452 , 431333 , 439460 , 439572 , 453597 , 457189 , 462450 , 470408 , 472712 , 477454 , 484797 , 488959 , 507016 , 508180 , 512222 , 514113 , 524910 , 527495 , 540456 , 546123 , 551268 , 555915 , 559605 , 560541 , 596839 , 604507 , 605470 , 612083 , 621463 , 623724 , 624511 , 627726 , 677963 , 685355 , 687500 , 688646 , 704722 , 710579 , 712927 , 722179 , 730466 , 730708 , 735826 , 741652 , 744704 , 746222 , 766695 , 778419 , 779178 , 781019 , 788670 , 789300 , 804201 , 805847 , 814833 , 822719 );
Copy