3
13.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
448095
788852
467051
436937
567888
452273
469404
514359
499394
687849
518722
774682
726166
771936
433218
585216
615447
454804
448065
552674
712881
728375
469107
589968
806860
497480
613800
524143
492942
675060
540143
743928
525452
540748
462826
513351
493816
582680
421673
476012
586189
493234
428605
469327
479752
463409
585550
470458
474611
427601
442573
448083
471495
507310
455861
425260
503934
609784
592770
448094
522089
554833
513603
516025
680200
525441
477079
449925
624030
506612
557259
590910
504718
493204
]
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 (448095 , 788852 , 467051 , 436937 , 567888 , 452273 , 469404 , 514359 , 499394 , 687849 , 518722 , 774682 , 726166 , 771936 , 433218 , 585216 , 615447 , 454804 , 448065 , 552674 , 712881 , 728375 , 469107 , 589968 , 806860 , 497480 , 613800 , 524143 , 492942 , 675060 , 540143 , 743928 , 525452 , 540748 , 462826 , 513351 , 493816 , 582680 , 421673 , 476012 , 586189 , 493234 , 428605 , 469327 , 479752 , 463409 , 585550 , 470458 , 474611 , 427601 , 442573 , 448083 , 471495 , 507310 , 455861 , 425260 , 503934 , 609784 , 592770 , 448094 , 522089 , 554833 , 513603 , 516025 , 680200 , 525441 , 477079 , 449925 , 624030 , 506612 , 557259 , 590910 , 504718 , 493204 );
Copy
4
3.09 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
421673
425260
427601
428605
433218
436937
442573
448065
448083
448094
448095
449925
452273
454804
455861
462826
463409
467051
469107
469327
469404
470458
471495
474611
476012
477079
479752
492942
493204
493234
493816
497480
499394
503934
504718
506612
507310
513351
513603
514359
516025
518722
522089
524143
525441
525452
540143
540748
552674
554833
557259
567888
582680
585216
585550
586189
589968
590910
592770
609784
613800
615447
624030
675060
680200
687849
712881
726166
728375
743928
771936
788852
806860
]
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 (421673 , 425260 , 427601 , 428605 , 433218 , 436937 , 442573 , 448065 , 448083 , 448094 , 448095 , 449925 , 452273 , 454804 , 455861 , 462826 , 463409 , 467051 , 469107 , 469327 , 469404 , 470458 , 471495 , 474611 , 476012 , 477079 , 479752 , 492942 , 493204 , 493234 , 493816 , 497480 , 499394 , 503934 , 504718 , 506612 , 507310 , 513351 , 513603 , 514359 , 516025 , 518722 , 522089 , 524143 , 525441 , 525452 , 540143 , 540748 , 552674 , 554833 , 557259 , 567888 , 582680 , 585216 , 585550 , 586189 , 589968 , 590910 , 592770 , 609784 , 613800 , 615447 , 624030 , 675060 , 680200 , 687849 , 712881 , 726166 , 728375 , 743928 , 771936 , 788852 , 806860 );
Copy
5
203.64 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
421673
425260
427601
428605
433218
436937
442573
448065
448083
448094
448095
449925
452273
454804
455861
462826
463409
467051
469107
469327
469404
470458
471495
474611
476012
477079
479752
492942
493204
493234
493816
497480
499394
503934
504718
506612
507310
513351
513603
514359
516025
518722
522089
524143
525441
525452
540143
540748
552674
554833
557259
567888
582680
585216
585550
586189
589968
590910
592770
609784
613800
615447
624030
675060
680200
687849
712881
726166
728375
743928
771936
788852
806860
]
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 (421673 , 425260 , 427601 , 428605 , 433218 , 436937 , 442573 , 448065 , 448083 , 448094 , 448095 , 449925 , 452273 , 454804 , 455861 , 462826 , 463409 , 467051 , 469107 , 469327 , 469404 , 470458 , 471495 , 474611 , 476012 , 477079 , 479752 , 492942 , 493204 , 493234 , 493816 , 497480 , 499394 , 503934 , 504718 , 506612 , 507310 , 513351 , 513603 , 514359 , 516025 , 518722 , 522089 , 524143 , 525441 , 525452 , 540143 , 540748 , 552674 , 554833 , 557259 , 567888 , 582680 , 585216 , 585550 , 586189 , 589968 , 590910 , 592770 , 609784 , 613800 , 615447 , 624030 , 675060 , 680200 , 687849 , 712881 , 726166 , 728375 , 743928 , 771936 , 788852 , 806860 );
Copy