75.12 ms (59.28%)
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
426399
428700
449925
452703
457945
457950
469097
475329
480354
480356
482704
486875
489263
490606
496096
496564
515542
516718
521810
523379
532560
535076
537028
543061
550031
554526
557324
562494
575300
581873
585358
590255
591394
593361
595256
597075
598391
598940
602594
604153
605182
608681
608686
609161
612226
618424
619888
620754
621020
622971
644276
657768
657775
660416
663212
668645
669362
669386
721895
743890
752626
760736
773257
806793
]
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 (426399 , 428700 , 449925 , 452703 , 457945 , 457950 , 469097 , 475329 , 480354 , 480356 , 482704 , 486875 , 489263 , 490606 , 496096 , 496564 , 515542 , 516718 , 521810 , 523379 , 532560 , 535076 , 537028 , 543061 , 550031 , 554526 , 557324 , 562494 , 575300 , 581873 , 585358 , 590255 , 591394 , 593361 , 595256 , 597075 , 598391 , 598940 , 602594 , 604153 , 605182 , 608681 , 608686 , 609161 , 612226 , 618424 , 619888 , 620754 , 621020 , 622971 , 644276 , 657768 , 657775 , 660416 , 663212 , 668645 , 669362 , 669386 , 721895 , 743890 , 752626 , 760736 , 773257 , 806793 );
Copy
14.12 ms (11.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
428700
452703
475329
532560
575300
668645
669362
660416
721895
598940
612226
585358
743890
773257
760736
806793
496096
515542
644276
621020
490606
595256
602594
609161
480354
457945
516718
469097
535076
557324
657768
669386
752626
457950
480356
562494
663212
608681
426399
489263
550031
619888
521810
581873
604153
598391
537028
597075
482704
657775
591394
620754
449925
608686
590255
523379
543061
496564
486875
554526
605182
593361
622971
618424
]
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 (428700 , 452703 , 475329 , 532560 , 575300 , 668645 , 669362 , 660416 , 721895 , 598940 , 612226 , 585358 , 743890 , 773257 , 760736 , 806793 , 496096 , 515542 , 644276 , 621020 , 490606 , 595256 , 602594 , 609161 , 480354 , 457945 , 516718 , 469097 , 535076 , 557324 , 657768 , 669386 , 752626 , 457950 , 480356 , 562494 , 663212 , 608681 , 426399 , 489263 , 550031 , 619888 , 521810 , 581873 , 604153 , 598391 , 537028 , 597075 , 482704 , 657775 , 591394 , 620754 , 449925 , 608686 , 590255 , 523379 , 543061 , 496564 , 486875 , 554526 , 605182 , 593361 , 622971 , 618424 );
Copy
2.41 ms (1.90%)
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
426399
428700
449925
452703
457945
457950
469097
475329
480354
480356
482704
486875
489263
490606
496096
496564
515542
516718
521810
523379
532560
535076
537028
543061
550031
554526
557324
562494
575300
581873
585358
590255
591394
593361
595256
597075
598391
598940
602594
604153
605182
608681
608686
609161
612226
618424
619888
620754
621020
622971
644276
657768
657775
660416
663212
668645
669362
669386
721895
743890
752626
760736
773257
806793
]
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 (426399 , 428700 , 449925 , 452703 , 457945 , 457950 , 469097 , 475329 , 480354 , 480356 , 482704 , 486875 , 489263 , 490606 , 496096 , 496564 , 515542 , 516718 , 521810 , 523379 , 532560 , 535076 , 537028 , 543061 , 550031 , 554526 , 557324 , 562494 , 575300 , 581873 , 585358 , 590255 , 591394 , 593361 , 595256 , 597075 , 598391 , 598940 , 602594 , 604153 , 605182 , 608681 , 608686 , 609161 , 612226 , 618424 , 619888 , 620754 , 621020 , 622971 , 644276 , 657768 , 657775 , 660416 , 663212 , 668645 , 669362 , 669386 , 721895 , 743890 , 752626 , 760736 , 773257 , 806793 );
Copy