88.10 ms (61.27%)
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
390680
428958
436047
437772
438851
442804
447253
448693
450440
451132
451928
451974
452060
452082
452092
452113
452131
452161
452305
452563
452657
455974
456451
459661
462863
466557
471951
476423
477772
481912
484365
486336
490091
491823
497950
500503
503314
505795
513960
518593
519859
520657
521204
522806
524408
525450
528931
551090
551268
552355
554812
559017
570212
570612
570625
571618
586118
586386
590460
595043
595504
597208
598666
602572
624962
640697
645883
670818
679347
]
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 (390680 , 428958 , 436047 , 437772 , 438851 , 442804 , 447253 , 448693 , 450440 , 451132 , 451928 , 451974 , 452060 , 452082 , 452092 , 452113 , 452131 , 452161 , 452305 , 452563 , 452657 , 455974 , 456451 , 459661 , 462863 , 466557 , 471951 , 476423 , 477772 , 481912 , 484365 , 486336 , 490091 , 491823 , 497950 , 500503 , 503314 , 505795 , 513960 , 518593 , 519859 , 520657 , 521204 , 522806 , 524408 , 525450 , 528931 , 551090 , 551268 , 552355 , 554812 , 559017 , 570212 , 570612 , 570625 , 571618 , 586118 , 586386 , 590460 , 595043 , 595504 , 597208 , 598666 , 602572 , 624962 , 640697 , 645883 , 670818 , 679347 );
Copy
13.82 ms (9.61%)
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
455974
437772
447253
452305
519859
524408
503314
450440
481912
645883
525450
640697
436047
442804
466557
552355
602572
452657
390680
452161
448693
477772
471951
452060
500503
595043
624962
476423
452563
459661
452092
484365
452131
456451
513960
551090
551268
571618
497950
521204
462863
428958
452113
554812
570212
451132
590460
452082
451974
528931
505795
518593
679347
570625
438851
595504
522806
520657
505794
451928
586386
559017
570612
598666
490091
670818
597208
486336
491823
586118
]
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 (455974 , 437772 , 447253 , 452305 , 519859 , 524408 , 503314 , 450440 , 481912 , 645883 , 525450 , 640697 , 436047 , 442804 , 466557 , 552355 , 602572 , 452657 , 390680 , 452161 , 448693 , 477772 , 471951 , 452060 , 500503 , 595043 , 624962 , 476423 , 452563 , 459661 , 452092 , 484365 , 452131 , 456451 , 513960 , 551090 , 551268 , 571618 , 497950 , 521204 , 462863 , 428958 , 452113 , 554812 , 570212 , 451132 , 590460 , 452082 , 451974 , 528931 , 505795 , 518593 , 679347 , 570625 , 438851 , 595504 , 522806 , 520657 , 505794 , 451928 , 586386 , 559017 , 570612 , 598666 , 490091 , 670818 , 597208 , 486336 , 491823 , 586118 );
Copy
2.74 ms (1.91%)
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
390680
428958
436047
437772
438851
442804
447253
448693
450440
451132
451928
451974
452060
452082
452092
452113
452131
452161
452305
452563
452657
455974
456451
459661
462863
466557
471951
476423
477772
481912
484365
486336
490091
491823
497950
500503
503314
505795
513960
518593
519859
520657
521204
522806
524408
525450
528931
551090
551268
552355
554812
559017
570212
570612
570625
571618
586118
586386
590460
595043
595504
597208
598666
602572
624962
640697
645883
670818
679347
]
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 (390680 , 428958 , 436047 , 437772 , 438851 , 442804 , 447253 , 448693 , 450440 , 451132 , 451928 , 451974 , 452060 , 452082 , 452092 , 452113 , 452131 , 452161 , 452305 , 452563 , 452657 , 455974 , 456451 , 459661 , 462863 , 466557 , 471951 , 476423 , 477772 , 481912 , 484365 , 486336 , 490091 , 491823 , 497950 , 500503 , 503314 , 505795 , 513960 , 518593 , 519859 , 520657 , 521204 , 522806 , 524408 , 525450 , 528931 , 551090 , 551268 , 552355 , 554812 , 559017 , 570212 , 570612 , 570625 , 571618 , 586118 , 586386 , 590460 , 595043 , 595504 , 597208 , 598666 , 602572 , 624962 , 640697 , 645883 , 670818 , 679347 );
Copy