76.02 ms (52.42%)
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
191315
401248
403389
419497
450998
452838
476439
483790
487859
489901
489920
490144
498183
499717
504033
504601
508780
510695
514268
515777
519705
520028
520926
558427
560141
560143
560146
560148
560149
560151
560152
560153
560154
560157
563893
573362
573486
574455
577056
593456
593478
593499
593515
593533
593534
593544
637740
644301
647964
673093
684343
688577
689274
692802
695236
699735
742034
769958
775916
784857
788266
804472
807387
815219
816061
826497
]
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 (191315 , 401248 , 403389 , 419497 , 450998 , 452838 , 476439 , 483790 , 487859 , 489901 , 489920 , 490144 , 498183 , 499717 , 504033 , 504601 , 508780 , 510695 , 514268 , 515777 , 519705 , 520028 , 520926 , 558427 , 560141 , 560143 , 560146 , 560148 , 560149 , 560151 , 560152 , 560153 , 560154 , 560157 , 563893 , 573362 , 573486 , 574455 , 577056 , 593456 , 593478 , 593499 , 593515 , 593533 , 593534 , 593544 , 637740 , 644301 , 647964 , 673093 , 684343 , 688577 , 689274 , 692802 , 695236 , 699735 , 742034 , 769958 , 775916 , 784857 , 788266 , 804472 , 807387 , 815219 , 816061 , 826497 );
Copy
12.53 ms (8.64%)
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
560143
504601
560154
560151
673093
560141
560149
560146
560157
560152
826497
574455
692802
191315
593456
689274
784857
489920
769958
490144
637740
563893
699735
804472
695236
483790
573362
560148
515777
816061
815219
499717
403389
476439
688577
807387
401248
788266
508780
775916
504033
742034
558427
577056
514268
593533
644301
489901
560153
452838
498183
487859
593478
419497
520926
684343
520028
519705
573486
647964
593515
593544
593534
510695
450998
593499
]
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 (560143 , 504601 , 560154 , 560151 , 673093 , 560141 , 560149 , 560146 , 560157 , 560152 , 826497 , 574455 , 692802 , 191315 , 593456 , 689274 , 784857 , 489920 , 769958 , 490144 , 637740 , 563893 , 699735 , 804472 , 695236 , 483790 , 573362 , 560148 , 515777 , 816061 , 815219 , 499717 , 403389 , 476439 , 688577 , 807387 , 401248 , 788266 , 508780 , 775916 , 504033 , 742034 , 558427 , 577056 , 514268 , 593533 , 644301 , 489901 , 560153 , 452838 , 498183 , 487859 , 593478 , 419497 , 520926 , 684343 , 520028 , 519705 , 573486 , 647964 , 593515 , 593544 , 593534 , 510695 , 450998 , 593499 );
Copy
3.04 ms (2.09%)
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
191315
401248
403389
419497
450998
452838
476439
483790
487859
489901
489920
490144
498183
499717
504033
504601
508780
510695
514268
515777
519705
520028
520926
558427
560141
560143
560146
560148
560149
560151
560152
560153
560154
560157
563893
573362
573486
574455
577056
593456
593478
593499
593515
593533
593534
593544
637740
644301
647964
673093
684343
688577
689274
692802
695236
699735
742034
769958
775916
784857
788266
804472
807387
815219
816061
826497
]
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 (191315 , 401248 , 403389 , 419497 , 450998 , 452838 , 476439 , 483790 , 487859 , 489901 , 489920 , 490144 , 498183 , 499717 , 504033 , 504601 , 508780 , 510695 , 514268 , 515777 , 519705 , 520028 , 520926 , 558427 , 560141 , 560143 , 560146 , 560148 , 560149 , 560151 , 560152 , 560153 , 560154 , 560157 , 563893 , 573362 , 573486 , 574455 , 577056 , 593456 , 593478 , 593499 , 593515 , 593533 , 593534 , 593544 , 637740 , 644301 , 647964 , 673093 , 684343 , 688577 , 689274 , 692802 , 695236 , 699735 , 742034 , 769958 , 775916 , 784857 , 788266 , 804472 , 807387 , 815219 , 816061 , 826497 );
Copy