128.34 ms (64.85%)
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
420232
430416
434289
434741
439233
443587
445607
461046
461634
466746
467066
467743
470524
475223
475952
479569
484760
485733
488197
489858
492829
494690
495325
497867
499795
500469
502808
504323
505005
508412
510079
511682
517345
517769
521571
523813
525380
526777
529033
529078
552535
552634
554563
554568
558820
558833
560877
562149
562269
562311
564112
572053
572385
573555
574782
576325
580289
586485
598186
601559
605346
607146
607227
617431
623487
663789
676417
]
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 (420232 , 430416 , 434289 , 434741 , 439233 , 443587 , 445607 , 461046 , 461634 , 466746 , 467066 , 467743 , 470524 , 475223 , 475952 , 479569 , 484760 , 485733 , 488197 , 489858 , 492829 , 494690 , 495325 , 497867 , 499795 , 500469 , 502808 , 504323 , 505005 , 508412 , 510079 , 511682 , 517345 , 517769 , 521571 , 523813 , 525380 , 526777 , 529033 , 529078 , 552535 , 552634 , 554563 , 554568 , 558820 , 558833 , 560877 , 562149 , 562269 , 562311 , 564112 , 572053 , 572385 , 573555 , 574782 , 576325 , 580289 , 586485 , 598186 , 601559 , 605346 , 607146 , 607227 , 617431 , 623487 , 663789 , 676417 );
Copy
12.33 ms (6.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
461046
439233
484760
552535
511682
601559
554563
663789
475952
564112
607146
598186
521571
510079
508412
461634
485733
499795
676417
586485
434741
467743
420232
525380
505005
475223
494690
445607
500469
479569
434289
489858
430416
467066
470524
607227
517345
562269
558820
552634
443587
526777
492829
562149
560877
497867
502808
466746
572385
562311
529033
576325
573555
495325
523813
488197
623487
572053
517769
554568
574782
580289
558833
504323
617431
529078
605346
]
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 (461046 , 439233 , 484760 , 552535 , 511682 , 601559 , 554563 , 663789 , 475952 , 564112 , 607146 , 598186 , 521571 , 510079 , 508412 , 461634 , 485733 , 499795 , 676417 , 586485 , 434741 , 467743 , 420232 , 525380 , 505005 , 475223 , 494690 , 445607 , 500469 , 479569 , 434289 , 489858 , 430416 , 467066 , 470524 , 607227 , 517345 , 562269 , 558820 , 552634 , 443587 , 526777 , 492829 , 562149 , 560877 , 497867 , 502808 , 466746 , 572385 , 562311 , 529033 , 576325 , 573555 , 495325 , 523813 , 488197 , 623487 , 572053 , 517769 , 554568 , 574782 , 580289 , 558833 , 504323 , 617431 , 529078 , 605346 );
Copy
2.92 ms (1.48%)
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
420232
430416
434289
434741
439233
443587
445607
461046
461634
466746
467066
467743
470524
475223
475952
479569
484760
485733
488197
489858
492829
494690
495325
497867
499795
500469
502808
504323
505005
508412
510079
511682
517345
517769
521571
523813
525380
526777
529033
529078
552535
552634
554563
554568
558820
558833
560877
562149
562269
562311
564112
572053
572385
573555
574782
576325
580289
586485
598186
601559
605346
607146
607227
617431
623487
663789
676417
]
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 (420232 , 430416 , 434289 , 434741 , 439233 , 443587 , 445607 , 461046 , 461634 , 466746 , 467066 , 467743 , 470524 , 475223 , 475952 , 479569 , 484760 , 485733 , 488197 , 489858 , 492829 , 494690 , 495325 , 497867 , 499795 , 500469 , 502808 , 504323 , 505005 , 508412 , 510079 , 511682 , 517345 , 517769 , 521571 , 523813 , 525380 , 526777 , 529033 , 529078 , 552535 , 552634 , 554563 , 554568 , 558820 , 558833 , 560877 , 562149 , 562269 , 562311 , 564112 , 572053 , 572385 , 573555 , 574782 , 576325 , 580289 , 586485 , 598186 , 601559 , 605346 , 607146 , 607227 , 617431 , 623487 , 663789 , 676417 );
Copy