89.96 ms (65.34%)
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
394134
435640
436490
446914
451380
451664
453725
459342
461366
469500
473893
482277
484343
486536
491796
499149
505917
505960
508730
509330
510341
516850
518024
518231
518388
519062
523113
528235
546742
551622
555077
556508
557091
557922
559242
559791
561281
562938
571203
574328
587890
588078
590537
593778
609225
613150
627307
663318
665325
682259
682296
682300
697892
709346
719280
723175
730039
761118
762004
779932
780427
780805
787040
791425
796214
802137
803719
816128
817728
826330
]
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 (394134 , 435640 , 436490 , 446914 , 451380 , 451664 , 453725 , 459342 , 461366 , 469500 , 473893 , 482277 , 484343 , 486536 , 491796 , 499149 , 505917 , 505960 , 508730 , 509330 , 510341 , 516850 , 518024 , 518231 , 518388 , 519062 , 523113 , 528235 , 546742 , 551622 , 555077 , 556508 , 557091 , 557922 , 559242 , 559791 , 561281 , 562938 , 571203 , 574328 , 587890 , 588078 , 590537 , 593778 , 609225 , 613150 , 627307 , 663318 , 665325 , 682259 , 682296 , 682300 , 697892 , 709346 , 719280 , 723175 , 730039 , 761118 , 762004 , 779932 , 780427 , 780805 , 787040 , 791425 , 796214 , 802137 , 803719 , 816128 , 817728 , 826330 );
Copy
10.91 ms (7.93%)
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
551622
761118
508730
816128
817728
719280
613150
780427
709346
787040
557922
802137
730039
779932
394134
518024
555077
574328
796214
482277
446914
803719
762004
780805
523113
435640
826330
546742
561281
682259
682296
682300
590537
627307
791425
505960
518231
436490
469500
697892
663318
571203
473893
518388
519062
491796
505917
559791
723175
665325
562938
587890
461366
484343
499149
528235
516850
556508
451380
557091
593778
451664
453725
509330
588078
510341
486536
459342
559242
609225
]
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 (551622 , 761118 , 508730 , 816128 , 817728 , 719280 , 613150 , 780427 , 709346 , 787040 , 557922 , 802137 , 730039 , 779932 , 394134 , 518024 , 555077 , 574328 , 796214 , 482277 , 446914 , 803719 , 762004 , 780805 , 523113 , 435640 , 826330 , 546742 , 561281 , 682259 , 682296 , 682300 , 590537 , 627307 , 791425 , 505960 , 518231 , 436490 , 469500 , 697892 , 663318 , 571203 , 473893 , 518388 , 519062 , 491796 , 505917 , 559791 , 723175 , 665325 , 562938 , 587890 , 461366 , 484343 , 499149 , 528235 , 516850 , 556508 , 451380 , 557091 , 593778 , 451664 , 453725 , 509330 , 588078 , 510341 , 486536 , 459342 , 559242 , 609225 );
Copy
2.56 ms (1.86%)
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
394134
435640
436490
446914
451380
451664
453725
459342
461366
469500
473893
482277
484343
486536
491796
499149
505917
505960
508730
509330
510341
516850
518024
518231
518388
519062
523113
528235
546742
551622
555077
556508
557091
557922
559242
559791
561281
562938
571203
574328
587890
588078
590537
593778
609225
613150
627307
663318
665325
682259
682296
682300
697892
709346
719280
723175
730039
761118
762004
779932
780427
780805
787040
791425
796214
802137
803719
816128
817728
826330
]
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 (394134 , 435640 , 436490 , 446914 , 451380 , 451664 , 453725 , 459342 , 461366 , 469500 , 473893 , 482277 , 484343 , 486536 , 491796 , 499149 , 505917 , 505960 , 508730 , 509330 , 510341 , 516850 , 518024 , 518231 , 518388 , 519062 , 523113 , 528235 , 546742 , 551622 , 555077 , 556508 , 557091 , 557922 , 559242 , 559791 , 561281 , 562938 , 571203 , 574328 , 587890 , 588078 , 590537 , 593778 , 609225 , 613150 , 627307 , 663318 , 665325 , 682259 , 682296 , 682300 , 697892 , 709346 , 719280 , 723175 , 730039 , 761118 , 762004 , 779932 , 780427 , 780805 , 787040 , 791425 , 796214 , 802137 , 803719 , 816128 , 817728 , 826330 );
Copy