3
12.29 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
533763
386959
535610
708090
574065
732875
797811
533776
742125
742799
543574
678671
529467
717662
743052
437901
485494
466466
565812
573969
455714
521976
535628
543838
551185
805169
731121
436692
455652
462601
465754
459790
498921
521837
522931
492816
508592
542108
434411
459481
460439
451596
462042
491381
509097
520340
560432
458231
476819
512652
513380
512972
510617
524362
576364
557945
564078
451328
431675
480597
459748
476113
503121
506794
525385
515969
497342
613970
577888
]
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 (533763 , 386959 , 535610 , 708090 , 574065 , 732875 , 797811 , 533776 , 742125 , 742799 , 543574 , 678671 , 529467 , 717662 , 743052 , 437901 , 485494 , 466466 , 565812 , 573969 , 455714 , 521976 , 535628 , 543838 , 551185 , 805169 , 731121 , 436692 , 455652 , 462601 , 465754 , 459790 , 498921 , 521837 , 522931 , 492816 , 508592 , 542108 , 434411 , 459481 , 460439 , 451596 , 462042 , 491381 , 509097 , 520340 , 560432 , 458231 , 476819 , 512652 , 513380 , 512972 , 510617 , 524362 , 576364 , 557945 , 564078 , 451328 , 431675 , 480597 , 459748 , 476113 , 503121 , 506794 , 525385 , 515969 , 497342 , 613970 , 577888 );
Copy
4
2.44 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
386959
431675
434411
436692
437901
451328
451596
455652
455714
458231
459481
459748
459790
460439
462042
462601
465754
466466
476113
476819
480597
485494
491381
492816
497342
498921
503121
506794
508592
509097
510617
512652
512972
513380
515969
520340
521837
521976
522931
524362
525385
529467
533763
533776
535610
535628
542108
543574
543838
551185
557945
560432
564078
565812
573969
574065
576364
577888
613970
678671
708090
717662
731121
732875
742125
742799
743052
797811
805169
]
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 (386959 , 431675 , 434411 , 436692 , 437901 , 451328 , 451596 , 455652 , 455714 , 458231 , 459481 , 459748 , 459790 , 460439 , 462042 , 462601 , 465754 , 466466 , 476113 , 476819 , 480597 , 485494 , 491381 , 492816 , 497342 , 498921 , 503121 , 506794 , 508592 , 509097 , 510617 , 512652 , 512972 , 513380 , 515969 , 520340 , 521837 , 521976 , 522931 , 524362 , 525385 , 529467 , 533763 , 533776 , 535610 , 535628 , 542108 , 543574 , 543838 , 551185 , 557945 , 560432 , 564078 , 565812 , 573969 , 574065 , 576364 , 577888 , 613970 , 678671 , 708090 , 717662 , 731121 , 732875 , 742125 , 742799 , 743052 , 797811 , 805169 );
Copy
5
138.27 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
386959
431675
434411
436692
437901
451328
451596
455652
455714
458231
459481
459748
459790
460439
462042
462601
465754
466466
476113
476819
480597
485494
491381
492816
497342
498921
503121
506794
508592
509097
510617
512652
512972
513380
515969
520340
521837
521976
522931
524362
525385
529467
533763
533776
535610
535628
542108
543574
543838
551185
557945
560432
564078
565812
573969
574065
576364
577888
613970
678671
708090
717662
731121
732875
742125
742799
743052
797811
805169
]
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 (386959 , 431675 , 434411 , 436692 , 437901 , 451328 , 451596 , 455652 , 455714 , 458231 , 459481 , 459748 , 459790 , 460439 , 462042 , 462601 , 465754 , 466466 , 476113 , 476819 , 480597 , 485494 , 491381 , 492816 , 497342 , 498921 , 503121 , 506794 , 508592 , 509097 , 510617 , 512652 , 512972 , 513380 , 515969 , 520340 , 521837 , 521976 , 522931 , 524362 , 525385 , 529467 , 533763 , 533776 , 535610 , 535628 , 542108 , 543574 , 543838 , 551185 , 557945 , 560432 , 564078 , 565812 , 573969 , 574065 , 576364 , 577888 , 613970 , 678671 , 708090 , 717662 , 731121 , 732875 , 742125 , 742799 , 743052 , 797811 , 805169 );
Copy