3
11.49 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
826302
545963
582746
769414
578748
806412
826499
469820
824634
710466
505342
629736
709444
556543
769384
809893
173960
746098
652148
469818
712086
652152
667455
752840
588042
415864
409577
469825
706023
644756
769446
492438
769435
461667
598235
796577
759712
469502
174164
510594
525766
460088
604929
633189
739759
584434
718878
455763
455651
492432
427330
445083
490692
499887
793434
578801
628633
454320
455643
535252
558158
650612
510583
494514
543567
545965
607027
605492
]
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 (826302 , 545963 , 582746 , 769414 , 578748 , 806412 , 826499 , 469820 , 824634 , 710466 , 505342 , 629736 , 709444 , 556543 , 769384 , 809893 , 173960 , 746098 , 652148 , 469818 , 712086 , 652152 , 667455 , 752840 , 588042 , 415864 , 409577 , 469825 , 706023 , 644756 , 769446 , 492438 , 769435 , 461667 , 598235 , 796577 , 759712 , 469502 , 174164 , 510594 , 525766 , 460088 , 604929 , 633189 , 739759 , 584434 , 718878 , 455763 , 455651 , 492432 , 427330 , 445083 , 490692 , 499887 , 793434 , 578801 , 628633 , 454320 , 455643 , 535252 , 558158 , 650612 , 510583 , 494514 , 543567 , 545965 , 607027 , 605492 );
Copy
4
3.82 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
173960
174164
409577
415864
427330
445083
454320
455643
455651
455763
460088
461667
469502
469818
469820
469825
490692
492432
492438
494514
499887
505342
510583
510594
525766
535252
543567
545963
545965
556543
558158
578748
578801
582746
584434
588042
598235
604929
605492
607027
628633
629736
633189
644756
650612
652148
652152
667455
706023
709444
710466
712086
718878
739759
746098
752840
759712
769384
769414
769435
769446
793434
796577
806412
809893
824634
826302
826499
]
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 (173960 , 174164 , 409577 , 415864 , 427330 , 445083 , 454320 , 455643 , 455651 , 455763 , 460088 , 461667 , 469502 , 469818 , 469820 , 469825 , 490692 , 492432 , 492438 , 494514 , 499887 , 505342 , 510583 , 510594 , 525766 , 535252 , 543567 , 545963 , 545965 , 556543 , 558158 , 578748 , 578801 , 582746 , 584434 , 588042 , 598235 , 604929 , 605492 , 607027 , 628633 , 629736 , 633189 , 644756 , 650612 , 652148 , 652152 , 667455 , 706023 , 709444 , 710466 , 712086 , 718878 , 739759 , 746098 , 752840 , 759712 , 769384 , 769414 , 769435 , 769446 , 793434 , 796577 , 806412 , 809893 , 824634 , 826302 , 826499 );
Copy
5
75.37 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
173960
174164
409577
415864
427330
445083
454320
455643
455651
455763
460088
461667
469502
469818
469820
469825
490692
492432
492438
494514
499887
505342
510583
510594
525766
535252
543567
545963
545965
556543
558158
578748
578801
582746
584434
588042
598235
604929
605492
607027
628633
629736
633189
644756
650612
652148
652152
667455
706023
709444
710466
712086
718878
739759
746098
752840
759712
769384
769414
769435
769446
793434
796577
806412
809893
824634
826302
826499
]
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 (173960 , 174164 , 409577 , 415864 , 427330 , 445083 , 454320 , 455643 , 455651 , 455763 , 460088 , 461667 , 469502 , 469818 , 469820 , 469825 , 490692 , 492432 , 492438 , 494514 , 499887 , 505342 , 510583 , 510594 , 525766 , 535252 , 543567 , 545963 , 545965 , 556543 , 558158 , 578748 , 578801 , 582746 , 584434 , 588042 , 598235 , 604929 , 605492 , 607027 , 628633 , 629736 , 633189 , 644756 , 650612 , 652148 , 652152 , 667455 , 706023 , 709444 , 710466 , 712086 , 718878 , 739759 , 746098 , 752840 , 759712 , 769384 , 769414 , 769435 , 769446 , 793434 , 796577 , 806412 , 809893 , 824634 , 826302 , 826499 );
Copy