78.02 ms (58.89%)
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
249637
383987
384524
396609
401728
404829
405507
413263
416165
417328
445514
448810
449869
452228
453473
457163
464453
465649
468008
468009
480429
480929
491497
494269
494345
502703
516686
517184
518438
521367
527273
527611
528586
532441
532766
532804
533746
536752
545611
545614
548570
549977
550960
556533
557236
560197
562894
564596
565149
566786
571016
571269
574410
574559
584708
586681
592358
593260
596865
602939
605105
620205
628082
637074
637123
639732
646875
647932
781697
811872
]
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 (249637 , 383987 , 384524 , 396609 , 401728 , 404829 , 405507 , 413263 , 416165 , 417328 , 445514 , 448810 , 449869 , 452228 , 453473 , 457163 , 464453 , 465649 , 468008 , 468009 , 480429 , 480929 , 491497 , 494269 , 494345 , 502703 , 516686 , 517184 , 518438 , 521367 , 527273 , 527611 , 528586 , 532441 , 532766 , 532804 , 533746 , 536752 , 545611 , 545614 , 548570 , 549977 , 550960 , 556533 , 557236 , 560197 , 562894 , 564596 , 565149 , 566786 , 571016 , 571269 , 574410 , 574559 , 584708 , 586681 , 592358 , 593260 , 596865 , 602939 , 605105 , 620205 , 628082 , 637074 , 637123 , 639732 , 646875 , 647932 , 781697 , 811872 );
Copy
13.79 ms (10.41%)
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
781697
811872
401728
571269
592358
445514
516686
468008
549977
404829
628082
564596
605105
602939
596865
593260
249637
517184
566786
560197
545611
637123
548570
586681
396609
413263
468009
646875
453473
527611
457163
405507
532804
532441
565149
556533
416165
502703
574559
574410
465649
545614
557236
417328
571016
384524
383987
452228
637074
536752
480429
521367
480929
491497
528586
494345
620205
527273
532766
464453
550960
494269
647932
449869
562894
448810
639732
518438
533746
584708
]
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 (781697 , 811872 , 401728 , 571269 , 592358 , 445514 , 516686 , 468008 , 549977 , 404829 , 628082 , 564596 , 605105 , 602939 , 596865 , 593260 , 249637 , 517184 , 566786 , 560197 , 545611 , 637123 , 548570 , 586681 , 396609 , 413263 , 468009 , 646875 , 453473 , 527611 , 457163 , 405507 , 532804 , 532441 , 565149 , 556533 , 416165 , 502703 , 574559 , 574410 , 465649 , 545614 , 557236 , 417328 , 571016 , 384524 , 383987 , 452228 , 637074 , 536752 , 480429 , 521367 , 480929 , 491497 , 528586 , 494345 , 620205 , 527273 , 532766 , 464453 , 550960 , 494269 , 647932 , 449869 , 562894 , 448810 , 639732 , 518438 , 533746 , 584708 );
Copy
2.67 ms (2.02%)
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
249637
383987
384524
396609
401728
404829
405507
413263
416165
417328
445514
448810
449869
452228
453473
457163
464453
465649
468008
468009
480429
480929
491497
494269
494345
502703
516686
517184
518438
521367
527273
527611
528586
532441
532766
532804
533746
536752
545611
545614
548570
549977
550960
556533
557236
560197
562894
564596
565149
566786
571016
571269
574410
574559
584708
586681
592358
593260
596865
602939
605105
620205
628082
637074
637123
639732
646875
647932
781697
811872
]
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 (249637 , 383987 , 384524 , 396609 , 401728 , 404829 , 405507 , 413263 , 416165 , 417328 , 445514 , 448810 , 449869 , 452228 , 453473 , 457163 , 464453 , 465649 , 468008 , 468009 , 480429 , 480929 , 491497 , 494269 , 494345 , 502703 , 516686 , 517184 , 518438 , 521367 , 527273 , 527611 , 528586 , 532441 , 532766 , 532804 , 533746 , 536752 , 545611 , 545614 , 548570 , 549977 , 550960 , 556533 , 557236 , 560197 , 562894 , 564596 , 565149 , 566786 , 571016 , 571269 , 574410 , 574559 , 584708 , 586681 , 592358 , 593260 , 596865 , 602939 , 605105 , 620205 , 628082 , 637074 , 637123 , 639732 , 646875 , 647932 , 781697 , 811872 );
Copy