83.58 ms (65.04%)
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
388685
417396
419445
419455
420432
426894
427367
427542
435398
435793
436639
438646
444921
445003
451146
452906
466700
477149
485297
502630
508986
510422
518227
518229
518905
520789
525365
527339
538712
553131
556573
558082
573289
576316
579381
579976
594243
595438
595465
598557
600125
600428
602395
608378
621259
665810
666496
680570
698435
713240
738542
742307
748046
749134
751110
756234
766173
769567
770325
778387
781304
783417
786394
786555
789151
790459
796397
804789
814035
814305
]
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 (388685 , 417396 , 419445 , 419455 , 420432 , 426894 , 427367 , 427542 , 435398 , 435793 , 436639 , 438646 , 444921 , 445003 , 451146 , 452906 , 466700 , 477149 , 485297 , 502630 , 508986 , 510422 , 518227 , 518229 , 518905 , 520789 , 525365 , 527339 , 538712 , 553131 , 556573 , 558082 , 573289 , 576316 , 579381 , 579976 , 594243 , 595438 , 595465 , 598557 , 600125 , 600428 , 602395 , 608378 , 621259 , 665810 , 666496 , 680570 , 698435 , 713240 , 738542 , 742307 , 748046 , 749134 , 751110 , 756234 , 766173 , 769567 , 770325 , 778387 , 781304 , 783417 , 786394 , 786555 , 789151 , 790459 , 796397 , 804789 , 814035 , 814305 );
Copy
9.23 ms (7.19%)
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
595438
783417
796397
778387
427367
518905
608378
595465
751110
527339
579381
600125
420432
502630
508986
419445
419455
485297
770325
518227
698435
576316
738542
573289
558082
427542
766173
804789
786394
749134
814305
781304
814035
786555
388685
538712
789151
713240
742307
756234
445003
510422
579976
556573
598557
438646
426894
451146
553131
665810
666496
680570
602395
594243
790459
769567
452906
518229
466700
600428
748046
477149
436639
525365
520789
435793
444921
435398
417396
621259
]
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 (595438 , 783417 , 796397 , 778387 , 427367 , 518905 , 608378 , 595465 , 751110 , 527339 , 579381 , 600125 , 420432 , 502630 , 508986 , 419445 , 419455 , 485297 , 770325 , 518227 , 698435 , 576316 , 738542 , 573289 , 558082 , 427542 , 766173 , 804789 , 786394 , 749134 , 814305 , 781304 , 814035 , 786555 , 388685 , 538712 , 789151 , 713240 , 742307 , 756234 , 445003 , 510422 , 579976 , 556573 , 598557 , 438646 , 426894 , 451146 , 553131 , 665810 , 666496 , 680570 , 602395 , 594243 , 790459 , 769567 , 452906 , 518229 , 466700 , 600428 , 748046 , 477149 , 436639 , 525365 , 520789 , 435793 , 444921 , 435398 , 417396 , 621259 );
Copy
2.47 ms (1.92%)
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
388685
417396
419445
419455
420432
426894
427367
427542
435398
435793
436639
438646
444921
445003
451146
452906
466700
477149
485297
502630
508986
510422
518227
518229
518905
520789
525365
527339
538712
553131
556573
558082
573289
576316
579381
579976
594243
595438
595465
598557
600125
600428
602395
608378
621259
665810
666496
680570
698435
713240
738542
742307
748046
749134
751110
756234
766173
769567
770325
778387
781304
783417
786394
786555
789151
790459
796397
804789
814035
814305
]
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 (388685 , 417396 , 419445 , 419455 , 420432 , 426894 , 427367 , 427542 , 435398 , 435793 , 436639 , 438646 , 444921 , 445003 , 451146 , 452906 , 466700 , 477149 , 485297 , 502630 , 508986 , 510422 , 518227 , 518229 , 518905 , 520789 , 525365 , 527339 , 538712 , 553131 , 556573 , 558082 , 573289 , 576316 , 579381 , 579976 , 594243 , 595438 , 595465 , 598557 , 600125 , 600428 , 602395 , 608378 , 621259 , 665810 , 666496 , 680570 , 698435 , 713240 , 738542 , 742307 , 748046 , 749134 , 751110 , 756234 , 766173 , 769567 , 770325 , 778387 , 781304 , 783417 , 786394 , 786555 , 789151 , 790459 , 796397 , 804789 , 814035 , 814305 );
Copy