3
9.90 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
784847
817764
605120
517796
588191
729587
521510
521505
658798
780743
801868
783664
816710
526023
606965
797878
445939
523988
766331
579443
750042
520342
824194
588018
766634
417192
560789
588712
504759
609747
780016
796330
827639
509725
568594
703496
585286
438421
520117
548295
389756
644945
559387
635854
798229
417011
516701
633815
520387
574978
497463
584567
605200
626322
584159
552801
640152
452585
493361
438844
481332
500493
624224
517595
431965
525203
591416
]
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 (784847 , 817764 , 605120 , 517796 , 588191 , 729587 , 521510 , 521505 , 658798 , 780743 , 801868 , 783664 , 816710 , 526023 , 606965 , 797878 , 445939 , 523988 , 766331 , 579443 , 750042 , 520342 , 824194 , 588018 , 766634 , 417192 , 560789 , 588712 , 504759 , 609747 , 780016 , 796330 , 827639 , 509725 , 568594 , 703496 , 585286 , 438421 , 520117 , 548295 , 389756 , 644945 , 559387 , 635854 , 798229 , 417011 , 516701 , 633815 , 520387 , 574978 , 497463 , 584567 , 605200 , 626322 , 584159 , 552801 , 640152 , 452585 , 493361 , 438844 , 481332 , 500493 , 624224 , 517595 , 431965 , 525203 , 591416 );
Copy
4
2.38 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
389756
417011
417192
431965
438421
438844
445939
452585
481332
493361
497463
500493
504759
509725
516701
517595
517796
520117
520342
520387
521505
521510
523988
525203
526023
548295
552801
559387
560789
568594
574978
579443
584159
584567
585286
588018
588191
588712
591416
605120
605200
606965
609747
624224
626322
633815
635854
640152
644945
658798
703496
729587
750042
766331
766634
780016
780743
783664
784847
796330
797878
798229
801868
816710
817764
824194
827639
]
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 (389756 , 417011 , 417192 , 431965 , 438421 , 438844 , 445939 , 452585 , 481332 , 493361 , 497463 , 500493 , 504759 , 509725 , 516701 , 517595 , 517796 , 520117 , 520342 , 520387 , 521505 , 521510 , 523988 , 525203 , 526023 , 548295 , 552801 , 559387 , 560789 , 568594 , 574978 , 579443 , 584159 , 584567 , 585286 , 588018 , 588191 , 588712 , 591416 , 605120 , 605200 , 606965 , 609747 , 624224 , 626322 , 633815 , 635854 , 640152 , 644945 , 658798 , 703496 , 729587 , 750042 , 766331 , 766634 , 780016 , 780743 , 783664 , 784847 , 796330 , 797878 , 798229 , 801868 , 816710 , 817764 , 824194 , 827639 );
Copy
5
91.93 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
389756
417011
417192
431965
438421
438844
445939
452585
481332
493361
497463
500493
504759
509725
516701
517595
517796
520117
520342
520387
521505
521510
523988
525203
526023
548295
552801
559387
560789
568594
574978
579443
584159
584567
585286
588018
588191
588712
591416
605120
605200
606965
609747
624224
626322
633815
635854
640152
644945
658798
703496
729587
750042
766331
766634
780016
780743
783664
784847
796330
797878
798229
801868
816710
817764
824194
827639
]
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 (389756 , 417011 , 417192 , 431965 , 438421 , 438844 , 445939 , 452585 , 481332 , 493361 , 497463 , 500493 , 504759 , 509725 , 516701 , 517595 , 517796 , 520117 , 520342 , 520387 , 521505 , 521510 , 523988 , 525203 , 526023 , 548295 , 552801 , 559387 , 560789 , 568594 , 574978 , 579443 , 584159 , 584567 , 585286 , 588018 , 588191 , 588712 , 591416 , 605120 , 605200 , 606965 , 609747 , 624224 , 626322 , 633815 , 635854 , 640152 , 644945 , 658798 , 703496 , 729587 , 750042 , 766331 , 766634 , 780016 , 780743 , 783664 , 784847 , 796330 , 797878 , 798229 , 801868 , 816710 , 817764 , 824194 , 827639 );
Copy