82.73 ms (61.32%)
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
402784
402793
413286
418879
434361
437960
440156
441745
442276
445108
445383
446861
451304
451386
452975
455015
456999
457149
460514
464243
465024
470903
472615
475287
485996
489207
495049
495235
502729
510224
510898
511013
511320
517752
518153
518638
524535
525262
525439
527123
527624
529406
539861
540799
542535
552791
553957
555387
555992
557544
572711
574083
581995
590881
592596
592974
595080
599117
603053
603994
609604
618471
624841
625441
677898
689074
736912
786114
]
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 (402784 , 402793 , 413286 , 418879 , 434361 , 437960 , 440156 , 441745 , 442276 , 445108 , 445383 , 446861 , 451304 , 451386 , 452975 , 455015 , 456999 , 457149 , 460514 , 464243 , 465024 , 470903 , 472615 , 475287 , 485996 , 489207 , 495049 , 495235 , 502729 , 510224 , 510898 , 511013 , 511320 , 517752 , 518153 , 518638 , 524535 , 525262 , 525439 , 527123 , 527624 , 529406 , 539861 , 540799 , 542535 , 552791 , 553957 , 555387 , 555992 , 557544 , 572711 , 574083 , 581995 , 590881 , 592596 , 592974 , 595080 , 599117 , 603053 , 603994 , 609604 , 618471 , 624841 , 625441 , 677898 , 689074 , 736912 , 786114 );
Copy
14.63 ms (10.84%)
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
434361
440156
495049
441745
451304
464243
451386
510224
539861
553957
581995
542535
555387
592596
445383
455015
495235
502729
552791
689074
445108
518153
511013
572711
442276
446861
472615
525439
511320
518638
574083
677898
592974
599117
618471
786114
736912
402793
456999
460514
489207
485996
557544
555992
524535
540799
402784
413286
529406
527123
475287
527624
510898
452975
517752
590881
624841
603053
609604
418879
437960
595080
465024
470903
525262
457149
603994
625441
]
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 (434361 , 440156 , 495049 , 441745 , 451304 , 464243 , 451386 , 510224 , 539861 , 553957 , 581995 , 542535 , 555387 , 592596 , 445383 , 455015 , 495235 , 502729 , 552791 , 689074 , 445108 , 518153 , 511013 , 572711 , 442276 , 446861 , 472615 , 525439 , 511320 , 518638 , 574083 , 677898 , 592974 , 599117 , 618471 , 786114 , 736912 , 402793 , 456999 , 460514 , 489207 , 485996 , 557544 , 555992 , 524535 , 540799 , 402784 , 413286 , 529406 , 527123 , 475287 , 527624 , 510898 , 452975 , 517752 , 590881 , 624841 , 603053 , 609604 , 418879 , 437960 , 595080 , 465024 , 470903 , 525262 , 457149 , 603994 , 625441 );
Copy
2.59 ms (1.92%)
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
402784
402793
413286
418879
434361
437960
440156
441745
442276
445108
445383
446861
451304
451386
452975
455015
456999
457149
460514
464243
465024
470903
472615
475287
485996
489207
495049
495235
502729
510224
510898
511013
511320
517752
518153
518638
524535
525262
525439
527123
527624
529406
539861
540799
542535
552791
553957
555387
555992
557544
572711
574083
581995
590881
592596
592974
595080
599117
603053
603994
609604
618471
624841
625441
677898
689074
736912
786114
]
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 (402784 , 402793 , 413286 , 418879 , 434361 , 437960 , 440156 , 441745 , 442276 , 445108 , 445383 , 446861 , 451304 , 451386 , 452975 , 455015 , 456999 , 457149 , 460514 , 464243 , 465024 , 470903 , 472615 , 475287 , 485996 , 489207 , 495049 , 495235 , 502729 , 510224 , 510898 , 511013 , 511320 , 517752 , 518153 , 518638 , 524535 , 525262 , 525439 , 527123 , 527624 , 529406 , 539861 , 540799 , 542535 , 552791 , 553957 , 555387 , 555992 , 557544 , 572711 , 574083 , 581995 , 590881 , 592596 , 592974 , 595080 , 599117 , 603053 , 603994 , 609604 , 618471 , 624841 , 625441 , 677898 , 689074 , 736912 , 786114 );
Copy