79.17 ms (45.87%)
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
415539
419609
427263
428827
436178
446172
448816
448851
450901
452436
466404
477873
491232
499789
501239
503866
504002
512447
516684
516686
517804
523924
525287
528361
529792
530369
531804
532666
533014
533557
533746
533915
534994
540511
540535
541848
541854
565276
585007
586587
599988
600011
600252
601578
614029
617165
618378
628117
630280
630533
632632
634208
634780
634818
642037
644913
646176
647854
647893
648220
665328
674994
675000
675008
676428
676638
677777
678095
683054
686843
]
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 (415539 , 419609 , 427263 , 428827 , 436178 , 446172 , 448816 , 448851 , 450901 , 452436 , 466404 , 477873 , 491232 , 499789 , 501239 , 503866 , 504002 , 512447 , 516684 , 516686 , 517804 , 523924 , 525287 , 528361 , 529792 , 530369 , 531804 , 532666 , 533014 , 533557 , 533746 , 533915 , 534994 , 540511 , 540535 , 541848 , 541854 , 565276 , 585007 , 586587 , 599988 , 600011 , 600252 , 601578 , 614029 , 617165 , 618378 , 628117 , 630280 , 630533 , 632632 , 634208 , 634780 , 634818 , 642037 , 644913 , 646176 , 647854 , 647893 , 648220 , 665328 , 674994 , 675000 , 675008 , 676428 , 676638 , 677777 , 678095 , 683054 , 686843 );
Copy
12.35 ms (7.15%)
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
678095
634780
448816
531804
517804
415539
644913
533014
541854
541848
647854
676638
646176
586587
466404
540511
540535
565276
676428
677777
686843
675000
600252
630533
634818
601578
634208
642037
436178
512447
516684
533746
674994
675008
632632
525287
533915
516686
648220
499789
448851
599988
534994
528361
600011
533557
523924
628117
501239
585007
532666
530369
614029
452436
529792
630280
446172
491232
504002
428827
683054
665328
618378
419609
450901
427263
503866
647893
617165
477873
]
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 (678095 , 634780 , 448816 , 531804 , 517804 , 415539 , 644913 , 533014 , 541854 , 541848 , 647854 , 676638 , 646176 , 586587 , 466404 , 540511 , 540535 , 565276 , 676428 , 677777 , 686843 , 675000 , 600252 , 630533 , 634818 , 601578 , 634208 , 642037 , 436178 , 512447 , 516684 , 533746 , 674994 , 675008 , 632632 , 525287 , 533915 , 516686 , 648220 , 499789 , 448851 , 599988 , 534994 , 528361 , 600011 , 533557 , 523924 , 628117 , 501239 , 585007 , 532666 , 530369 , 614029 , 452436 , 529792 , 630280 , 446172 , 491232 , 504002 , 428827 , 683054 , 665328 , 618378 , 419609 , 450901 , 427263 , 503866 , 647893 , 617165 , 477873 );
Copy
2.64 ms (1.53%)
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
415539
419609
427263
428827
436178
446172
448816
448851
450901
452436
466404
477873
491232
499789
501239
503866
504002
512447
516684
516686
517804
523924
525287
528361
529792
530369
531804
532666
533014
533557
533746
533915
534994
540511
540535
541848
541854
565276
585007
586587
599988
600011
600252
601578
614029
617165
618378
628117
630280
630533
632632
634208
634780
634818
642037
644913
646176
647854
647893
648220
665328
674994
675000
675008
676428
676638
677777
678095
683054
686843
]
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 (415539 , 419609 , 427263 , 428827 , 436178 , 446172 , 448816 , 448851 , 450901 , 452436 , 466404 , 477873 , 491232 , 499789 , 501239 , 503866 , 504002 , 512447 , 516684 , 516686 , 517804 , 523924 , 525287 , 528361 , 529792 , 530369 , 531804 , 532666 , 533014 , 533557 , 533746 , 533915 , 534994 , 540511 , 540535 , 541848 , 541854 , 565276 , 585007 , 586587 , 599988 , 600011 , 600252 , 601578 , 614029 , 617165 , 618378 , 628117 , 630280 , 630533 , 632632 , 634208 , 634780 , 634818 , 642037 , 644913 , 646176 , 647854 , 647893 , 648220 , 665328 , 674994 , 675000 , 675008 , 676428 , 676638 , 677777 , 678095 , 683054 , 686843 );
Copy