3
12.35 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
765638
619514
432688
438528
440848
589512
522719
469814
546721
567914
718720
589550
611021
620820
604230
781234
800475
813035
788601
741714
807653
437403
418797
512423
499157
440691
451227
472042
522074
547900
555465
584431
584563
580657
625521
623250
589110
624391
609838
614954
463360
444705
502341
497118
503156
507998
418116
475111
472985
576036
556494
633377
459130
513725
523920
527192
471498
535429
480652
580818
580807
707740
609197
475404
510427
520654
523584
513574
421219
467993
550841
552984
553926
613360
548056
]
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 (765638 , 619514 , 432688 , 438528 , 440848 , 589512 , 522719 , 469814 , 546721 , 567914 , 718720 , 589550 , 611021 , 620820 , 604230 , 781234 , 800475 , 813035 , 788601 , 741714 , 807653 , 437403 , 418797 , 512423 , 499157 , 440691 , 451227 , 472042 , 522074 , 547900 , 555465 , 584431 , 584563 , 580657 , 625521 , 623250 , 589110 , 624391 , 609838 , 614954 , 463360 , 444705 , 502341 , 497118 , 503156 , 507998 , 418116 , 475111 , 472985 , 576036 , 556494 , 633377 , 459130 , 513725 , 523920 , 527192 , 471498 , 535429 , 480652 , 580818 , 580807 , 707740 , 609197 , 475404 , 510427 , 520654 , 523584 , 513574 , 421219 , 467993 , 550841 , 552984 , 553926 , 613360 , 548056 );
Copy
4
1.98 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
418116
418797
421219
432688
437403
438528
440691
440848
444705
451227
459130
463360
467993
469814
471498
472042
472985
475111
475404
480652
497118
499157
502341
503156
507998
510427
512423
513574
513725
520654
522074
522719
523584
523920
527192
535429
546721
547900
548056
550841
552984
553926
555465
556494
567914
576036
580657
580807
580818
584431
584563
589110
589512
589550
604230
609197
609838
611021
613360
614954
619514
620820
623250
624391
625521
633377
707740
718720
741714
765638
781234
788601
800475
807653
813035
]
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 (418116 , 418797 , 421219 , 432688 , 437403 , 438528 , 440691 , 440848 , 444705 , 451227 , 459130 , 463360 , 467993 , 469814 , 471498 , 472042 , 472985 , 475111 , 475404 , 480652 , 497118 , 499157 , 502341 , 503156 , 507998 , 510427 , 512423 , 513574 , 513725 , 520654 , 522074 , 522719 , 523584 , 523920 , 527192 , 535429 , 546721 , 547900 , 548056 , 550841 , 552984 , 553926 , 555465 , 556494 , 567914 , 576036 , 580657 , 580807 , 580818 , 584431 , 584563 , 589110 , 589512 , 589550 , 604230 , 609197 , 609838 , 611021 , 613360 , 614954 , 619514 , 620820 , 623250 , 624391 , 625521 , 633377 , 707740 , 718720 , 741714 , 765638 , 781234 , 788601 , 800475 , 807653 , 813035 );
Copy
5
96.77 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
418116
418797
421219
432688
437403
438528
440691
440848
444705
451227
459130
463360
467993
469814
471498
472042
472985
475111
475404
480652
497118
499157
502341
503156
507998
510427
512423
513574
513725
520654
522074
522719
523584
523920
527192
535429
546721
547900
548056
550841
552984
553926
555465
556494
567914
576036
580657
580807
580818
584431
584563
589110
589512
589550
604230
609197
609838
611021
613360
614954
619514
620820
623250
624391
625521
633377
707740
718720
741714
765638
781234
788601
800475
807653
813035
]
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 (418116 , 418797 , 421219 , 432688 , 437403 , 438528 , 440691 , 440848 , 444705 , 451227 , 459130 , 463360 , 467993 , 469814 , 471498 , 472042 , 472985 , 475111 , 475404 , 480652 , 497118 , 499157 , 502341 , 503156 , 507998 , 510427 , 512423 , 513574 , 513725 , 520654 , 522074 , 522719 , 523584 , 523920 , 527192 , 535429 , 546721 , 547900 , 548056 , 550841 , 552984 , 553926 , 555465 , 556494 , 567914 , 576036 , 580657 , 580807 , 580818 , 584431 , 584563 , 589110 , 589512 , 589550 , 604230 , 609197 , 609838 , 611021 , 613360 , 614954 , 619514 , 620820 , 623250 , 624391 , 625521 , 633377 , 707740 , 718720 , 741714 , 765638 , 781234 , 788601 , 800475 , 807653 , 813035 );
Copy