3
11.33 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
660800
751354
544683
477564
478983
574994
483262
556867
567591
660750
626348
605176
478992
621246
543150
549144
600404
618768
813816
542602
542345
478986
473206
512810
577077
407464
550688
660843
585569
543143
543204
576942
575009
637437
457392
484269
507207
565220
577058
577074
591859
599289
478985
478990
655482
619816
536458
592898
632119
525092
603716
457076
463830
494720
494736
525088
521552
556970
486531
660834
543048
556951
586534
604419
494764
591438
]
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 (660800 , 751354 , 544683 , 477564 , 478983 , 574994 , 483262 , 556867 , 567591 , 660750 , 626348 , 605176 , 478992 , 621246 , 543150 , 549144 , 600404 , 618768 , 813816 , 542602 , 542345 , 478986 , 473206 , 512810 , 577077 , 407464 , 550688 , 660843 , 585569 , 543143 , 543204 , 576942 , 575009 , 637437 , 457392 , 484269 , 507207 , 565220 , 577058 , 577074 , 591859 , 599289 , 478985 , 478990 , 655482 , 619816 , 536458 , 592898 , 632119 , 525092 , 603716 , 457076 , 463830 , 494720 , 494736 , 525088 , 521552 , 556970 , 486531 , 660834 , 543048 , 556951 , 586534 , 604419 , 494764 , 591438 );
Copy
4
2.47 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
407464
457076
457392
463830
473206
477564
478983
478985
478986
478990
478992
483262
484269
486531
494720
494736
494764
507207
512810
521552
525088
525092
536458
542345
542602
543048
543143
543150
543204
544683
549144
550688
556867
556951
556970
565220
567591
574994
575009
576942
577058
577074
577077
585569
586534
591438
591859
592898
599289
600404
603716
604419
605176
618768
619816
621246
626348
632119
637437
655482
660750
660800
660834
660843
751354
813816
]
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 (407464 , 457076 , 457392 , 463830 , 473206 , 477564 , 478983 , 478985 , 478986 , 478990 , 478992 , 483262 , 484269 , 486531 , 494720 , 494736 , 494764 , 507207 , 512810 , 521552 , 525088 , 525092 , 536458 , 542345 , 542602 , 543048 , 543143 , 543150 , 543204 , 544683 , 549144 , 550688 , 556867 , 556951 , 556970 , 565220 , 567591 , 574994 , 575009 , 576942 , 577058 , 577074 , 577077 , 585569 , 586534 , 591438 , 591859 , 592898 , 599289 , 600404 , 603716 , 604419 , 605176 , 618768 , 619816 , 621246 , 626348 , 632119 , 637437 , 655482 , 660750 , 660800 , 660834 , 660843 , 751354 , 813816 );
Copy
5
90.09 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
407464
457076
457392
463830
473206
477564
478983
478985
478986
478990
478992
483262
484269
486531
494720
494736
494764
507207
512810
521552
525088
525092
536458
542345
542602
543048
543143
543150
543204
544683
549144
550688
556867
556951
556970
565220
567591
574994
575009
576942
577058
577074
577077
585569
586534
591438
591859
592898
599289
600404
603716
604419
605176
618768
619816
621246
626348
632119
637437
655482
660750
660800
660834
660843
751354
813816
]
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 (407464 , 457076 , 457392 , 463830 , 473206 , 477564 , 478983 , 478985 , 478986 , 478990 , 478992 , 483262 , 484269 , 486531 , 494720 , 494736 , 494764 , 507207 , 512810 , 521552 , 525088 , 525092 , 536458 , 542345 , 542602 , 543048 , 543143 , 543150 , 543204 , 544683 , 549144 , 550688 , 556867 , 556951 , 556970 , 565220 , 567591 , 574994 , 575009 , 576942 , 577058 , 577074 , 577077 , 585569 , 586534 , 591438 , 591859 , 592898 , 599289 , 600404 , 603716 , 604419 , 605176 , 618768 , 619816 , 621246 , 626348 , 632119 , 637437 , 655482 , 660750 , 660800 , 660834 , 660843 , 751354 , 813816 );
Copy