83.91 ms (60.99%)
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
419370
419989
425332
432662
450822
458907
464336
472299
481047
487150
508883
526188
528719
532241
532380
533534
537686
537885
537928
540217
545586
551222
554927
556030
556046
557236
558126
565241
565250
565359
574410
578139
578804
583960
584720
584752
590329
593238
597216
598042
616617
617214
621737
628116
631196
632649
633749
637008
637036
640758
642006
642037
651666
656768
659272
659674
668549
675008
675022
720260
784158
]
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 (419370 , 419989 , 425332 , 432662 , 450822 , 458907 , 464336 , 472299 , 481047 , 487150 , 508883 , 526188 , 528719 , 532241 , 532380 , 533534 , 537686 , 537885 , 537928 , 540217 , 545586 , 551222 , 554927 , 556030 , 556046 , 557236 , 558126 , 565241 , 565250 , 565359 , 574410 , 578139 , 578804 , 583960 , 584720 , 584752 , 590329 , 593238 , 597216 , 598042 , 616617 , 617214 , 621737 , 628116 , 631196 , 632649 , 633749 , 637008 , 637036 , 640758 , 642006 , 642037 , 651666 , 656768 , 659272 , 659674 , 668549 , 675008 , 675022 , 720260 , 784158 );
Copy
13.56 ms (9.85%)
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
464336
784158
419989
554927
565359
628116
621737
481047
574410
425332
593238
616617
640758
558126
487150
537885
578139
720260
565241
565250
432662
528719
659674
584752
617214
526188
545586
532241
537928
532380
583960
668549
633749
578804
508883
598042
458907
472299
450822
551222
651666
637008
537686
540217
556030
632649
656768
637036
590329
631196
556046
642006
642037
419370
675022
659272
533534
557236
597216
675008
584720
]
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 (464336 , 784158 , 419989 , 554927 , 565359 , 628116 , 621737 , 481047 , 574410 , 425332 , 593238 , 616617 , 640758 , 558126 , 487150 , 537885 , 578139 , 720260 , 565241 , 565250 , 432662 , 528719 , 659674 , 584752 , 617214 , 526188 , 545586 , 532241 , 537928 , 532380 , 583960 , 668549 , 633749 , 578804 , 508883 , 598042 , 458907 , 472299 , 450822 , 551222 , 651666 , 637008 , 537686 , 540217 , 556030 , 632649 , 656768 , 637036 , 590329 , 631196 , 556046 , 642006 , 642037 , 419370 , 675022 , 659272 , 533534 , 557236 , 597216 , 675008 , 584720 );
Copy
2.64 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
419370
419989
425332
432662
450822
458907
464336
472299
481047
487150
508883
526188
528719
532241
532380
533534
537686
537885
537928
540217
545586
551222
554927
556030
556046
557236
558126
565241
565250
565359
574410
578139
578804
583960
584720
584752
590329
593238
597216
598042
616617
617214
621737
628116
631196
632649
633749
637008
637036
640758
642006
642037
651666
656768
659272
659674
668549
675008
675022
720260
784158
]
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 (419370 , 419989 , 425332 , 432662 , 450822 , 458907 , 464336 , 472299 , 481047 , 487150 , 508883 , 526188 , 528719 , 532241 , 532380 , 533534 , 537686 , 537885 , 537928 , 540217 , 545586 , 551222 , 554927 , 556030 , 556046 , 557236 , 558126 , 565241 , 565250 , 565359 , 574410 , 578139 , 578804 , 583960 , 584720 , 584752 , 590329 , 593238 , 597216 , 598042 , 616617 , 617214 , 621737 , 628116 , 631196 , 632649 , 633749 , 637008 , 637036 , 640758 , 642006 , 642037 , 651666 , 656768 , 659272 , 659674 , 668549 , 675008 , 675022 , 720260 , 784158 );
Copy