101.94 ms (67.46%)
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
391315
413531
424529
425987
426526
427832
428158
443358
447156
449558
452182
453341
463848
470664
474969
475957
476016
479094
482191
486903
489769
489997
506467
529150
537143
540247
547427
549708
555203
555233
555234
555378
562065
568077
569547
574380
581025
591906
592849
593033
596766
598625
599770
599805
602534
607359
612044
618185
626915
627341
632074
660115
694387
768870
788928
795957
798730
802204
811964
818741
818987
819500
820656
821899
825670
827916
]
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 (391315 , 413531 , 424529 , 425987 , 426526 , 427832 , 428158 , 443358 , 447156 , 449558 , 452182 , 453341 , 463848 , 470664 , 474969 , 475957 , 476016 , 479094 , 482191 , 486903 , 489769 , 489997 , 506467 , 529150 , 537143 , 540247 , 547427 , 549708 , 555203 , 555233 , 555234 , 555378 , 562065 , 568077 , 569547 , 574380 , 581025 , 591906 , 592849 , 593033 , 596766 , 598625 , 599770 , 599805 , 602534 , 607359 , 612044 , 618185 , 626915 , 627341 , 632074 , 660115 , 694387 , 768870 , 788928 , 795957 , 798730 , 802204 , 811964 , 818741 , 818987 , 819500 , 820656 , 821899 , 825670 , 827916 );
Copy
8.64 ms (5.72%)
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
795957
474969
537143
479094
391315
818987
599805
447156
555234
482191
449558
470664
827916
529150
607359
574380
424529
825670
626915
413531
599770
596766
798730
768870
627341
425987
555233
443358
818741
592849
820656
819500
788928
568077
694387
821899
802204
489997
632074
547427
660115
602534
475957
555378
562065
569547
555203
618185
593033
486903
426526
612044
463848
591906
476016
598625
811964
453341
506467
428158
540247
581025
427832
452182
489769
549708
]
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 (795957 , 474969 , 537143 , 479094 , 391315 , 818987 , 599805 , 447156 , 555234 , 482191 , 449558 , 470664 , 827916 , 529150 , 607359 , 574380 , 424529 , 825670 , 626915 , 413531 , 599770 , 596766 , 798730 , 768870 , 627341 , 425987 , 555233 , 443358 , 818741 , 592849 , 820656 , 819500 , 788928 , 568077 , 694387 , 821899 , 802204 , 489997 , 632074 , 547427 , 660115 , 602534 , 475957 , 555378 , 562065 , 569547 , 555203 , 618185 , 593033 , 486903 , 426526 , 612044 , 463848 , 591906 , 476016 , 598625 , 811964 , 453341 , 506467 , 428158 , 540247 , 581025 , 427832 , 452182 , 489769 , 549708 );
Copy
2.50 ms (1.66%)
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
391315
413531
424529
425987
426526
427832
428158
443358
447156
449558
452182
453341
463848
470664
474969
475957
476016
479094
482191
486903
489769
489997
506467
529150
537143
540247
547427
549708
555203
555233
555234
555378
562065
568077
569547
574380
581025
591906
592849
593033
596766
598625
599770
599805
602534
607359
612044
618185
626915
627341
632074
660115
694387
768870
788928
795957
798730
802204
811964
818741
818987
819500
820656
821899
825670
827916
]
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 (391315 , 413531 , 424529 , 425987 , 426526 , 427832 , 428158 , 443358 , 447156 , 449558 , 452182 , 453341 , 463848 , 470664 , 474969 , 475957 , 476016 , 479094 , 482191 , 486903 , 489769 , 489997 , 506467 , 529150 , 537143 , 540247 , 547427 , 549708 , 555203 , 555233 , 555234 , 555378 , 562065 , 568077 , 569547 , 574380 , 581025 , 591906 , 592849 , 593033 , 596766 , 598625 , 599770 , 599805 , 602534 , 607359 , 612044 , 618185 , 626915 , 627341 , 632074 , 660115 , 694387 , 768870 , 788928 , 795957 , 798730 , 802204 , 811964 , 818741 , 818987 , 819500 , 820656 , 821899 , 825670 , 827916 );
Copy