3
13.00 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
748088
710538
726333
798744
825855
716694
636877
781528
810270
715832
647329
630393
643715
819563
580602
722073
793893
783450
749138
575596
715826
713147
589221
726302
532417
808255
628331
722079
534819
720045
792421
749931
780782
407890
445240
405716
411090
446370
541416
651903
545484
550559
552068
598733
616000
748547
483461
495194
544230
707275
405831
451410
579858
665918
616472
806430
514021
509931
478511
567865
450721
450910
450966
497207
532701
601102
632601
]
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 (748088 , 710538 , 726333 , 798744 , 825855 , 716694 , 636877 , 781528 , 810270 , 715832 , 647329 , 630393 , 643715 , 819563 , 580602 , 722073 , 793893 , 783450 , 749138 , 575596 , 715826 , 713147 , 589221 , 726302 , 532417 , 808255 , 628331 , 722079 , 534819 , 720045 , 792421 , 749931 , 780782 , 407890 , 445240 , 405716 , 411090 , 446370 , 541416 , 651903 , 545484 , 550559 , 552068 , 598733 , 616000 , 748547 , 483461 , 495194 , 544230 , 707275 , 405831 , 451410 , 579858 , 665918 , 616472 , 806430 , 514021 , 509931 , 478511 , 567865 , 450721 , 450910 , 450966 , 497207 , 532701 , 601102 , 632601 );
Copy
4
2.61 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
405716
405831
407890
411090
445240
446370
450721
450910
450966
451410
478511
483461
495194
497207
509931
514021
532417
532701
534819
541416
544230
545484
550559
552068
567865
575596
579858
580602
589221
598733
601102
616000
616472
628331
630393
632601
636877
643715
647329
651903
665918
707275
710538
713147
715826
715832
716694
720045
722073
722079
726302
726333
748088
748547
749138
749931
780782
781528
783450
792421
793893
798744
806430
808255
810270
819563
825855
]
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 (405716 , 405831 , 407890 , 411090 , 445240 , 446370 , 450721 , 450910 , 450966 , 451410 , 478511 , 483461 , 495194 , 497207 , 509931 , 514021 , 532417 , 532701 , 534819 , 541416 , 544230 , 545484 , 550559 , 552068 , 567865 , 575596 , 579858 , 580602 , 589221 , 598733 , 601102 , 616000 , 616472 , 628331 , 630393 , 632601 , 636877 , 643715 , 647329 , 651903 , 665918 , 707275 , 710538 , 713147 , 715826 , 715832 , 716694 , 720045 , 722073 , 722079 , 726302 , 726333 , 748088 , 748547 , 749138 , 749931 , 780782 , 781528 , 783450 , 792421 , 793893 , 798744 , 806430 , 808255 , 810270 , 819563 , 825855 );
Copy
5
80.19 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
405716
405831
407890
411090
445240
446370
450721
450910
450966
451410
478511
483461
495194
497207
509931
514021
532417
532701
534819
541416
544230
545484
550559
552068
567865
575596
579858
580602
589221
598733
601102
616000
616472
628331
630393
632601
636877
643715
647329
651903
665918
707275
710538
713147
715826
715832
716694
720045
722073
722079
726302
726333
748088
748547
749138
749931
780782
781528
783450
792421
793893
798744
806430
808255
810270
819563
825855
]
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 (405716 , 405831 , 407890 , 411090 , 445240 , 446370 , 450721 , 450910 , 450966 , 451410 , 478511 , 483461 , 495194 , 497207 , 509931 , 514021 , 532417 , 532701 , 534819 , 541416 , 544230 , 545484 , 550559 , 552068 , 567865 , 575596 , 579858 , 580602 , 589221 , 598733 , 601102 , 616000 , 616472 , 628331 , 630393 , 632601 , 636877 , 643715 , 647329 , 651903 , 665918 , 707275 , 710538 , 713147 , 715826 , 715832 , 716694 , 720045 , 722073 , 722079 , 726302 , 726333 , 748088 , 748547 , 749138 , 749931 , 780782 , 781528 , 783450 , 792421 , 793893 , 798744 , 806430 , 808255 , 810270 , 819563 , 825855 );
Copy