3
9.57 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
731339
695117
535110
759033
805415
735452
532087
785708
827908
766514
824484
758815
726038
801865
818642
519238
484921
815515
532090
479493
397213
729569
807489
782993
466710
532070
789233
734518
566015
789790
194033
446817
449153
473483
606683
781739
446762
482339
524625
421074
461350
483496
532069
555027
573515
622765
623406
370949
450811
461598
479112
549838
513873
571956
572291
565916
474461
459907
462472
472693
572767
533587
531408
621414
603713
625185
]
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 (731339 , 695117 , 535110 , 759033 , 805415 , 735452 , 532087 , 785708 , 827908 , 766514 , 824484 , 758815 , 726038 , 801865 , 818642 , 519238 , 484921 , 815515 , 532090 , 479493 , 397213 , 729569 , 807489 , 782993 , 466710 , 532070 , 789233 , 734518 , 566015 , 789790 , 194033 , 446817 , 449153 , 473483 , 606683 , 781739 , 446762 , 482339 , 524625 , 421074 , 461350 , 483496 , 532069 , 555027 , 573515 , 622765 , 623406 , 370949 , 450811 , 461598 , 479112 , 549838 , 513873 , 571956 , 572291 , 565916 , 474461 , 459907 , 462472 , 472693 , 572767 , 533587 , 531408 , 621414 , 603713 , 625185 );
Copy
4
2.17 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
194033
370949
397213
421074
446762
446817
449153
450811
459907
461350
461598
462472
466710
472693
473483
474461
479112
479493
482339
483496
484921
513873
519238
524625
531408
532069
532070
532087
532090
533587
535110
549838
555027
565916
566015
571956
572291
572767
573515
603713
606683
621414
622765
623406
625185
695117
726038
729569
731339
734518
735452
758815
759033
766514
781739
782993
785708
789233
789790
801865
805415
807489
815515
818642
824484
827908
]
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 (194033 , 370949 , 397213 , 421074 , 446762 , 446817 , 449153 , 450811 , 459907 , 461350 , 461598 , 462472 , 466710 , 472693 , 473483 , 474461 , 479112 , 479493 , 482339 , 483496 , 484921 , 513873 , 519238 , 524625 , 531408 , 532069 , 532070 , 532087 , 532090 , 533587 , 535110 , 549838 , 555027 , 565916 , 566015 , 571956 , 572291 , 572767 , 573515 , 603713 , 606683 , 621414 , 622765 , 623406 , 625185 , 695117 , 726038 , 729569 , 731339 , 734518 , 735452 , 758815 , 759033 , 766514 , 781739 , 782993 , 785708 , 789233 , 789790 , 801865 , 805415 , 807489 , 815515 , 818642 , 824484 , 827908 );
Copy
5
82.76 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
194033
370949
397213
421074
446762
446817
449153
450811
459907
461350
461598
462472
466710
472693
473483
474461
479112
479493
482339
483496
484921
513873
519238
524625
531408
532069
532070
532087
532090
533587
535110
549838
555027
565916
566015
571956
572291
572767
573515
603713
606683
621414
622765
623406
625185
695117
726038
729569
731339
734518
735452
758815
759033
766514
781739
782993
785708
789233
789790
801865
805415
807489
815515
818642
824484
827908
]
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 (194033 , 370949 , 397213 , 421074 , 446762 , 446817 , 449153 , 450811 , 459907 , 461350 , 461598 , 462472 , 466710 , 472693 , 473483 , 474461 , 479112 , 479493 , 482339 , 483496 , 484921 , 513873 , 519238 , 524625 , 531408 , 532069 , 532070 , 532087 , 532090 , 533587 , 535110 , 549838 , 555027 , 565916 , 566015 , 571956 , 572291 , 572767 , 573515 , 603713 , 606683 , 621414 , 622765 , 623406 , 625185 , 695117 , 726038 , 729569 , 731339 , 734518 , 735452 , 758815 , 759033 , 766514 , 781739 , 782993 , 785708 , 789233 , 789790 , 801865 , 805415 , 807489 , 815515 , 818642 , 824484 , 827908 );
Copy