89.46 ms (75.40%)
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
410267
412367
413301
416867
426399
428424
430875
437133
452608
454397
456933
457059
463426
474394
476810
480620
493788
498110
511283
512479
515523
518220
518542
519549
522459
525716
526358
529293
529510
531008
549226
552987
565077
565745
569316
570999
579624
580860
586136
586406
586566
597576
598031
600347
602306
602317
611268
612356
614501
614857
614858
622117
622415
643460
649893
656318
679677
679679
746575
755481
756611
764067
772063
777424
784137
788485
793592
801799
812486
]
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 (410267 , 412367 , 413301 , 416867 , 426399 , 428424 , 430875 , 437133 , 452608 , 454397 , 456933 , 457059 , 463426 , 474394 , 476810 , 480620 , 493788 , 498110 , 511283 , 512479 , 515523 , 518220 , 518542 , 519549 , 522459 , 525716 , 526358 , 529293 , 529510 , 531008 , 549226 , 552987 , 565077 , 565745 , 569316 , 570999 , 579624 , 580860 , 586136 , 586406 , 586566 , 597576 , 598031 , 600347 , 602306 , 602317 , 611268 , 612356 , 614501 , 614857 , 614858 , 622117 , 622415 , 643460 , 649893 , 656318 , 679677 , 679679 , 746575 , 755481 , 756611 , 764067 , 772063 , 777424 , 784137 , 788485 , 793592 , 801799 , 812486 );
Copy
13.32 ms (11.23%)
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
611268
586566
602317
597576
755481
413301
428424
457059
463426
522459
493788
614857
437133
511283
565077
549226
812486
756611
612356
456933
476810
512479
552987
410267
452608
525716
498110
515523
454397
474394
412367
519549
580860
426399
416867
518220
764067
565745
570999
649893
598031
614858
529293
622415
772063
586406
777424
622117
656318
746575
784137
531008
643460
788485
801799
430875
569316
679679
793592
529510
679677
480620
600347
614501
518542
586136
526358
579624
602306
]
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 (611268 , 586566 , 602317 , 597576 , 755481 , 413301 , 428424 , 457059 , 463426 , 522459 , 493788 , 614857 , 437133 , 511283 , 565077 , 549226 , 812486 , 756611 , 612356 , 456933 , 476810 , 512479 , 552987 , 410267 , 452608 , 525716 , 498110 , 515523 , 454397 , 474394 , 412367 , 519549 , 580860 , 426399 , 416867 , 518220 , 764067 , 565745 , 570999 , 649893 , 598031 , 614858 , 529293 , 622415 , 772063 , 586406 , 777424 , 622117 , 656318 , 746575 , 784137 , 531008 , 643460 , 788485 , 801799 , 430875 , 569316 , 679679 , 793592 , 529510 , 679677 , 480620 , 600347 , 614501 , 518542 , 586136 , 526358 , 579624 , 602306 );
Copy
2.74 ms (2.31%)
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
410267
412367
413301
416867
426399
428424
430875
437133
452608
454397
456933
457059
463426
474394
476810
480620
493788
498110
511283
512479
515523
518220
518542
519549
522459
525716
526358
529293
529510
531008
549226
552987
565077
565745
569316
570999
579624
580860
586136
586406
586566
597576
598031
600347
602306
602317
611268
612356
614501
614857
614858
622117
622415
643460
649893
656318
679677
679679
746575
755481
756611
764067
772063
777424
784137
788485
793592
801799
812486
]
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 (410267 , 412367 , 413301 , 416867 , 426399 , 428424 , 430875 , 437133 , 452608 , 454397 , 456933 , 457059 , 463426 , 474394 , 476810 , 480620 , 493788 , 498110 , 511283 , 512479 , 515523 , 518220 , 518542 , 519549 , 522459 , 525716 , 526358 , 529293 , 529510 , 531008 , 549226 , 552987 , 565077 , 565745 , 569316 , 570999 , 579624 , 580860 , 586136 , 586406 , 586566 , 597576 , 598031 , 600347 , 602306 , 602317 , 611268 , 612356 , 614501 , 614857 , 614858 , 622117 , 622415 , 643460 , 649893 , 656318 , 679677 , 679679 , 746575 , 755481 , 756611 , 764067 , 772063 , 777424 , 784137 , 788485 , 793592 , 801799 , 812486 );
Copy