73.76 ms (61.93%)
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
93079
162863
168297
168687
383560
407382
415036
420818
422582
424715
448346
457259
491452
492414
502511
503248
512198
512213
512224
518972
519903
519907
519909
519914
524492
525178
546770
549977
550742
550764
551028
552054
552887
556397
557503
557537
557812
557814
558427
558431
559928
564601
565471
565979
565987
566007
566074
572734
575716
580267
580269
584794
586626
590967
591795
601024
604429
622628
623615
623622
632682
637737
]
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 (93079 , 162863 , 168297 , 168687 , 383560 , 407382 , 415036 , 420818 , 422582 , 424715 , 448346 , 457259 , 491452 , 492414 , 502511 , 503248 , 512198 , 512213 , 512224 , 518972 , 519903 , 519907 , 519909 , 519914 , 524492 , 525178 , 546770 , 549977 , 550742 , 550764 , 551028 , 552054 , 552887 , 556397 , 557503 , 557537 , 557812 , 557814 , 558427 , 558431 , 559928 , 564601 , 565471 , 565979 , 565987 , 566007 , 566074 , 572734 , 575716 , 580267 , 580269 , 584794 , 586626 , 590967 , 591795 , 601024 , 604429 , 622628 , 623615 , 623622 , 632682 , 637737 );
Copy
10.69 ms (8.98%)
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
558427
559928
415036
168687
632682
492414
491452
637737
558431
551028
519909
519907
512213
448346
584794
383560
604429
550764
556397
512224
557814
93079
168297
565471
519914
623622
552887
566007
580267
162863
524492
580269
407382
572734
565979
457259
552054
591795
424715
503248
565987
420818
564601
557537
601024
525178
586626
546770
518972
549977
557812
590967
622628
566074
550742
557503
512198
422582
575716
519903
623615
502511
]
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 (558427 , 559928 , 415036 , 168687 , 632682 , 492414 , 491452 , 637737 , 558431 , 551028 , 519909 , 519907 , 512213 , 448346 , 584794 , 383560 , 604429 , 550764 , 556397 , 512224 , 557814 , 93079 , 168297 , 565471 , 519914 , 623622 , 552887 , 566007 , 580267 , 162863 , 524492 , 580269 , 407382 , 572734 , 565979 , 457259 , 552054 , 591795 , 424715 , 503248 , 565987 , 420818 , 564601 , 557537 , 601024 , 525178 , 586626 , 546770 , 518972 , 549977 , 557812 , 590967 , 622628 , 566074 , 550742 , 557503 , 512198 , 422582 , 575716 , 519903 , 623615 , 502511 );
Copy
2.87 ms (2.41%)
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
93079
162863
168297
168687
383560
407382
415036
420818
422582
424715
448346
457259
491452
492414
502511
503248
512198
512213
512224
518972
519903
519907
519909
519914
524492
525178
546770
549977
550742
550764
551028
552054
552887
556397
557503
557537
557812
557814
558427
558431
559928
564601
565471
565979
565987
566007
566074
572734
575716
580267
580269
584794
586626
590967
591795
601024
604429
622628
623615
623622
632682
637737
]
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 (93079 , 162863 , 168297 , 168687 , 383560 , 407382 , 415036 , 420818 , 422582 , 424715 , 448346 , 457259 , 491452 , 492414 , 502511 , 503248 , 512198 , 512213 , 512224 , 518972 , 519903 , 519907 , 519909 , 519914 , 524492 , 525178 , 546770 , 549977 , 550742 , 550764 , 551028 , 552054 , 552887 , 556397 , 557503 , 557537 , 557812 , 557814 , 558427 , 558431 , 559928 , 564601 , 565471 , 565979 , 565987 , 566007 , 566074 , 572734 , 575716 , 580267 , 580269 , 584794 , 586626 , 590967 , 591795 , 601024 , 604429 , 622628 , 623615 , 623622 , 632682 , 637737 );
Copy