90.65 ms (60.91%)
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
397258
410254
420635
421871
421890
422044
428679
434712
436178
439819
441004
441024
445398
445880
454984
464327
466065
467553
467581
472790
476797
483788
484924
489280
490201
497865
502482
510398
511762
513710
514640
514648
514997
518521
521438
523335
524621
525287
525688
526203
527627
529290
530377
544863
550667
557236
560783
562758
562763
575494
576049
576358
576859
590469
603002
603854
603906
603933
605445
622253
624030
625675
626154
634230
644274
659035
679567
748349
751565
755457
]
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 (397258 , 410254 , 420635 , 421871 , 421890 , 422044 , 428679 , 434712 , 436178 , 439819 , 441004 , 441024 , 445398 , 445880 , 454984 , 464327 , 466065 , 467553 , 467581 , 472790 , 476797 , 483788 , 484924 , 489280 , 490201 , 497865 , 502482 , 510398 , 511762 , 513710 , 514640 , 514648 , 514997 , 518521 , 521438 , 523335 , 524621 , 525287 , 525688 , 526203 , 527627 , 529290 , 530377 , 544863 , 550667 , 557236 , 560783 , 562758 , 562763 , 575494 , 576049 , 576358 , 576859 , 590469 , 603002 , 603854 , 603906 , 603933 , 605445 , 622253 , 624030 , 625675 , 626154 , 634230 , 644274 , 659035 , 679567 , 748349 , 751565 , 755457 );
Copy
15.63 ms (10.50%)
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
550667
544863
659035
576859
622253
590469
603002
421871
421890
422044
466065
476797
454984
467581
510398
490201
497865
513710
514648
489280
502482
514640
523335
755457
644274
434712
410254
524621
560783
576049
679567
562758
562763
624030
605445
751565
625675
464327
436178
441024
467553
420635
441004
484924
518521
521438
525688
529290
557236
634230
603854
603906
439819
525287
397258
445880
626154
472790
527627
603933
483788
576358
748349
511762
445398
575494
514997
526203
428679
530377
]
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 (550667 , 544863 , 659035 , 576859 , 622253 , 590469 , 603002 , 421871 , 421890 , 422044 , 466065 , 476797 , 454984 , 467581 , 510398 , 490201 , 497865 , 513710 , 514648 , 489280 , 502482 , 514640 , 523335 , 755457 , 644274 , 434712 , 410254 , 524621 , 560783 , 576049 , 679567 , 562758 , 562763 , 624030 , 605445 , 751565 , 625675 , 464327 , 436178 , 441024 , 467553 , 420635 , 441004 , 484924 , 518521 , 521438 , 525688 , 529290 , 557236 , 634230 , 603854 , 603906 , 439819 , 525287 , 397258 , 445880 , 626154 , 472790 , 527627 , 603933 , 483788 , 576358 , 748349 , 511762 , 445398 , 575494 , 514997 , 526203 , 428679 , 530377 );
Copy
2.48 ms (1.66%)
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
397258
410254
420635
421871
421890
422044
428679
434712
436178
439819
441004
441024
445398
445880
454984
464327
466065
467553
467581
472790
476797
483788
484924
489280
490201
497865
502482
510398
511762
513710
514640
514648
514997
518521
521438
523335
524621
525287
525688
526203
527627
529290
530377
544863
550667
557236
560783
562758
562763
575494
576049
576358
576859
590469
603002
603854
603906
603933
605445
622253
624030
625675
626154
634230
644274
659035
679567
748349
751565
755457
]
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 (397258 , 410254 , 420635 , 421871 , 421890 , 422044 , 428679 , 434712 , 436178 , 439819 , 441004 , 441024 , 445398 , 445880 , 454984 , 464327 , 466065 , 467553 , 467581 , 472790 , 476797 , 483788 , 484924 , 489280 , 490201 , 497865 , 502482 , 510398 , 511762 , 513710 , 514640 , 514648 , 514997 , 518521 , 521438 , 523335 , 524621 , 525287 , 525688 , 526203 , 527627 , 529290 , 530377 , 544863 , 550667 , 557236 , 560783 , 562758 , 562763 , 575494 , 576049 , 576358 , 576859 , 590469 , 603002 , 603854 , 603906 , 603933 , 605445 , 622253 , 624030 , 625675 , 626154 , 634230 , 644274 , 659035 , 679567 , 748349 , 751565 , 755457 );
Copy