3
8.48 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
736509
493116
703749
576237
471009
468508
825064
714147
4199
471052
510945
804738
510921
810136
452908
548284
791349
729294
750632
824633
569564
807837
739749
725428
453160
461199
794161
493715
710503
824735
664498
685509
714336
457548
531597
617563
628562
803491
537518
796778
804444
490598
592975
471030
559430
804602
807881
812052
782094
504030
586360
756245
769465
790710
714380
823990
554408
801560
584120
500207
520885
743952
]
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 (736509 , 493116 , 703749 , 576237 , 471009 , 468508 , 825064 , 714147 , 4199 , 471052 , 510945 , 804738 , 510921 , 810136 , 452908 , 548284 , 791349 , 729294 , 750632 , 824633 , 569564 , 807837 , 739749 , 725428 , 453160 , 461199 , 794161 , 493715 , 710503 , 824735 , 664498 , 685509 , 714336 , 457548 , 531597 , 617563 , 628562 , 803491 , 537518 , 796778 , 804444 , 490598 , 592975 , 471030 , 559430 , 804602 , 807881 , 812052 , 782094 , 504030 , 586360 , 756245 , 769465 , 790710 , 714380 , 823990 , 554408 , 801560 , 584120 , 500207 , 520885 , 743952 );
Copy
4
2.37 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
4199
452908
453160
457548
461199
468508
471009
471030
471052
490598
493116
493715
500207
504030
510921
510945
520885
531597
537518
548284
554408
559430
569564
576237
584120
586360
592975
617563
628562
664498
685509
703749
710503
714147
714336
714380
725428
729294
736509
739749
743952
750632
756245
769465
782094
790710
791349
794161
796778
801560
803491
804444
804602
804738
807837
807881
810136
812052
823990
824633
824735
825064
]
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 (4199 , 452908 , 453160 , 457548 , 461199 , 468508 , 471009 , 471030 , 471052 , 490598 , 493116 , 493715 , 500207 , 504030 , 510921 , 510945 , 520885 , 531597 , 537518 , 548284 , 554408 , 559430 , 569564 , 576237 , 584120 , 586360 , 592975 , 617563 , 628562 , 664498 , 685509 , 703749 , 710503 , 714147 , 714336 , 714380 , 725428 , 729294 , 736509 , 739749 , 743952 , 750632 , 756245 , 769465 , 782094 , 790710 , 791349 , 794161 , 796778 , 801560 , 803491 , 804444 , 804602 , 804738 , 807837 , 807881 , 810136 , 812052 , 823990 , 824633 , 824735 , 825064 );
Copy
5
106.34 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
4199
452908
453160
457548
461199
468508
471009
471030
471052
490598
493116
493715
500207
504030
510921
510945
520885
531597
537518
548284
554408
559430
569564
576237
584120
586360
592975
617563
628562
664498
685509
703749
710503
714147
714336
714380
725428
729294
736509
739749
743952
750632
756245
769465
782094
790710
791349
794161
796778
801560
803491
804444
804602
804738
807837
807881
810136
812052
823990
824633
824735
825064
]
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 (4199 , 452908 , 453160 , 457548 , 461199 , 468508 , 471009 , 471030 , 471052 , 490598 , 493116 , 493715 , 500207 , 504030 , 510921 , 510945 , 520885 , 531597 , 537518 , 548284 , 554408 , 559430 , 569564 , 576237 , 584120 , 586360 , 592975 , 617563 , 628562 , 664498 , 685509 , 703749 , 710503 , 714147 , 714336 , 714380 , 725428 , 729294 , 736509 , 739749 , 743952 , 750632 , 756245 , 769465 , 782094 , 790710 , 791349 , 794161 , 796778 , 801560 , 803491 , 804444 , 804602 , 804738 , 807837 , 807881 , 810136 , 812052 , 823990 , 824633 , 824735 , 825064 );
Copy