3
10.03 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
498442
491805
507891
507906
450770
464476
472496
450786
531505
532776
539771
495063
531415
524157
579669
550898
654201
607608
600965
591676
641377
417929
450766
469633
417828
441067
540779
462931
507884
535542
534280
531512
539758
539759
582062
568538
581715
685643
620500
595165
516408
514240
527062
535023
539760
535017
558348
568558
578586
584328
595132
634212
417829
536370
573390
601231
605532
509345
595761
428480
582730
542148
544686
459524
577491
622668
]
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 (498442 , 491805 , 507891 , 507906 , 450770 , 464476 , 472496 , 450786 , 531505 , 532776 , 539771 , 495063 , 531415 , 524157 , 579669 , 550898 , 654201 , 607608 , 600965 , 591676 , 641377 , 417929 , 450766 , 469633 , 417828 , 441067 , 540779 , 462931 , 507884 , 535542 , 534280 , 531512 , 539758 , 539759 , 582062 , 568538 , 581715 , 685643 , 620500 , 595165 , 516408 , 514240 , 527062 , 535023 , 539760 , 535017 , 558348 , 568558 , 578586 , 584328 , 595132 , 634212 , 417829 , 536370 , 573390 , 601231 , 605532 , 509345 , 595761 , 428480 , 582730 , 542148 , 544686 , 459524 , 577491 , 622668 );
Copy
4
2.75 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
417828
417829
417929
428480
441067
450766
450770
450786
459524
462931
464476
469633
472496
491805
495063
498442
507884
507891
507906
509345
514240
516408
524157
527062
531415
531505
531512
532776
534280
535017
535023
535542
536370
539758
539759
539760
539771
540779
542148
544686
550898
558348
568538
568558
573390
577491
578586
579669
581715
582062
582730
584328
591676
595132
595165
595761
600965
601231
605532
607608
620500
622668
634212
641377
654201
685643
]
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 (417828 , 417829 , 417929 , 428480 , 441067 , 450766 , 450770 , 450786 , 459524 , 462931 , 464476 , 469633 , 472496 , 491805 , 495063 , 498442 , 507884 , 507891 , 507906 , 509345 , 514240 , 516408 , 524157 , 527062 , 531415 , 531505 , 531512 , 532776 , 534280 , 535017 , 535023 , 535542 , 536370 , 539758 , 539759 , 539760 , 539771 , 540779 , 542148 , 544686 , 550898 , 558348 , 568538 , 568558 , 573390 , 577491 , 578586 , 579669 , 581715 , 582062 , 582730 , 584328 , 591676 , 595132 , 595165 , 595761 , 600965 , 601231 , 605532 , 607608 , 620500 , 622668 , 634212 , 641377 , 654201 , 685643 );
Copy
5
85.04 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
417828
417829
417929
428480
441067
450766
450770
450786
459524
462931
464476
469633
472496
491805
495063
498442
507884
507891
507906
509345
514240
516408
524157
527062
531415
531505
531512
532776
534280
535017
535023
535542
536370
539758
539759
539760
539771
540779
542148
544686
550898
558348
568538
568558
573390
577491
578586
579669
581715
582062
582730
584328
591676
595132
595165
595761
600965
601231
605532
607608
620500
622668
634212
641377
654201
685643
]
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 (417828 , 417829 , 417929 , 428480 , 441067 , 450766 , 450770 , 450786 , 459524 , 462931 , 464476 , 469633 , 472496 , 491805 , 495063 , 498442 , 507884 , 507891 , 507906 , 509345 , 514240 , 516408 , 524157 , 527062 , 531415 , 531505 , 531512 , 532776 , 534280 , 535017 , 535023 , 535542 , 536370 , 539758 , 539759 , 539760 , 539771 , 540779 , 542148 , 544686 , 550898 , 558348 , 568538 , 568558 , 573390 , 577491 , 578586 , 579669 , 581715 , 582062 , 582730 , 584328 , 591676 , 595132 , 595165 , 595761 , 600965 , 601231 , 605532 , 607608 , 620500 , 622668 , 634212 , 641377 , 654201 , 685643 );
Copy