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