72.63 ms (63.54%)
1
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
436091
450405
455770
460033
463867
477883
478633
480302
497663
499352
512763
514740
514863
514905
515763
526853
530349
536967
541096
541123
541833
542969
543203
543576
552332
552355
557526
560166
562790
566819
572008
578187
579261
585814
586671
593867
596967
602665
630692
630900
640694
650143
651038
651066
651998
696430
698030
705117
708768
713999
714814
714844
714851
731005
734603
763649
767651
773502
781001
790210
793395
797552
801907
802835
805126
809239
810681
811584
]
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 (436091 , 450405 , 455770 , 460033 , 463867 , 477883 , 478633 , 480302 , 497663 , 499352 , 512763 , 514740 , 514863 , 514905 , 515763 , 526853 , 530349 , 536967 , 541096 , 541123 , 541833 , 542969 , 543203 , 543576 , 552332 , 552355 , 557526 , 560166 , 562790 , 566819 , 572008 , 578187 , 579261 , 585814 , 586671 , 593867 , 596967 , 602665 , 630692 , 630900 , 640694 , 650143 , 651038 , 651066 , 651998 , 696430 , 698030 , 705117 , 708768 , 713999 , 714814 , 714844 , 714851 , 731005 , 734603 , 763649 , 767651 , 773502 , 781001 , 790210 , 793395 , 797552 , 801907 , 802835 , 805126 , 809239 , 810681 , 811584 );
Copy
10.91 ms (9.55%)
1
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
630692
630900
514905
708768
734603
705117
797552
773502
811584
530349
713999
763649
805126
543203
566819
560166
651998
714814
650143
651066
793395
790210
767651
541123
640694
731005
478633
536967
512763
809239
802835
460033
477883
499352
480302
541096
572008
578187
714844
714851
602665
596967
781001
810681
698030
455770
552332
579261
585814
586671
450405
696430
436091
497663
463867
514863
542969
543576
552355
651038
593867
514740
515763
557526
526853
801907
541833
562790
]
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 (630692 , 630900 , 514905 , 708768 , 734603 , 705117 , 797552 , 773502 , 811584 , 530349 , 713999 , 763649 , 805126 , 543203 , 566819 , 560166 , 651998 , 714814 , 650143 , 651066 , 793395 , 790210 , 767651 , 541123 , 640694 , 731005 , 478633 , 536967 , 512763 , 809239 , 802835 , 460033 , 477883 , 499352 , 480302 , 541096 , 572008 , 578187 , 714844 , 714851 , 602665 , 596967 , 781001 , 810681 , 698030 , 455770 , 552332 , 579261 , 585814 , 586671 , 450405 , 696430 , 436091 , 497663 , 463867 , 514863 , 542969 , 543576 , 552355 , 651038 , 593867 , 514740 , 515763 , 557526 , 526853 , 801907 , 541833 , 562790 );
Copy
2.15 ms (1.88%)
1
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
436091
450405
455770
460033
463867
477883
478633
480302
497663
499352
512763
514740
514863
514905
515763
526853
530349
536967
541096
541123
541833
542969
543203
543576
552332
552355
557526
560166
562790
566819
572008
578187
579261
585814
586671
593867
596967
602665
630692
630900
640694
650143
651038
651066
651998
696430
698030
705117
708768
713999
714814
714844
714851
731005
734603
763649
767651
773502
781001
790210
793395
797552
801907
802835
805126
809239
810681
811584
]
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 (436091 , 450405 , 455770 , 460033 , 463867 , 477883 , 478633 , 480302 , 497663 , 499352 , 512763 , 514740 , 514863 , 514905 , 515763 , 526853 , 530349 , 536967 , 541096 , 541123 , 541833 , 542969 , 543203 , 543576 , 552332 , 552355 , 557526 , 560166 , 562790 , 566819 , 572008 , 578187 , 579261 , 585814 , 586671 , 593867 , 596967 , 602665 , 630692 , 630900 , 640694 , 650143 , 651038 , 651066 , 651998 , 696430 , 698030 , 705117 , 708768 , 713999 , 714814 , 714844 , 714851 , 731005 , 734603 , 763649 , 767651 , 773502 , 781001 , 790210 , 793395 , 797552 , 801907 , 802835 , 805126 , 809239 , 810681 , 811584 );
Copy