92.33 ms (57.30%)
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
166116
397161
398523
404841
407566
410439
414126
418188
430444
448640
450399
451259
455981
469549
471848
487517
509821
510589
510953
515734
519588
527465
527669
532132
536279
538915
549308
550615
551005
557812
557815
565468
565492
566002
566014
566016
575329
581972
583247
583298
583851
586542
591882
598344
603458
616536
619438
622628
622650
622990
623554
623610
630215
631214
639310
642063
672258
694195
786454
804677
805789
812795
815151
815330
815893
816935
817920
818442
]
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 (166116 , 397161 , 398523 , 404841 , 407566 , 410439 , 414126 , 418188 , 430444 , 448640 , 450399 , 451259 , 455981 , 469549 , 471848 , 487517 , 509821 , 510589 , 510953 , 515734 , 519588 , 527465 , 527669 , 532132 , 536279 , 538915 , 549308 , 550615 , 551005 , 557812 , 557815 , 565468 , 565492 , 566002 , 566014 , 566016 , 575329 , 581972 , 583247 , 583298 , 583851 , 586542 , 591882 , 598344 , 603458 , 616536 , 619438 , 622628 , 622650 , 622990 , 623554 , 623610 , 630215 , 631214 , 639310 , 642063 , 672258 , 694195 , 786454 , 804677 , 805789 , 812795 , 815151 , 815330 , 815893 , 816935 , 817920 , 818442 );
Copy
12.84 ms (7.97%)
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
397161
404841
694195
566014
469549
603458
619438
536279
398523
565492
565468
557815
166116
532132
623554
639310
581972
583298
616536
623610
786454
622650
450399
551005
575329
598344
815151
805789
510589
550615
407566
815893
586542
410439
448640
817920
566016
672258
515734
622628
566002
557812
549308
630215
816935
818442
509821
510953
451259
418188
812795
430444
527669
815330
487517
538915
622990
414126
471848
591882
519588
455981
631214
583851
527465
642063
804677
583247
]
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 (397161 , 404841 , 694195 , 566014 , 469549 , 603458 , 619438 , 536279 , 398523 , 565492 , 565468 , 557815 , 166116 , 532132 , 623554 , 639310 , 581972 , 583298 , 616536 , 623610 , 786454 , 622650 , 450399 , 551005 , 575329 , 598344 , 815151 , 805789 , 510589 , 550615 , 407566 , 815893 , 586542 , 410439 , 448640 , 817920 , 566016 , 672258 , 515734 , 622628 , 566002 , 557812 , 549308 , 630215 , 816935 , 818442 , 509821 , 510953 , 451259 , 418188 , 812795 , 430444 , 527669 , 815330 , 487517 , 538915 , 622990 , 414126 , 471848 , 591882 , 519588 , 455981 , 631214 , 583851 , 527465 , 642063 , 804677 , 583247 );
Copy
3.15 ms (1.95%)
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
166116
397161
398523
404841
407566
410439
414126
418188
430444
448640
450399
451259
455981
469549
471848
487517
509821
510589
510953
515734
519588
527465
527669
532132
536279
538915
549308
550615
551005
557812
557815
565468
565492
566002
566014
566016
575329
581972
583247
583298
583851
586542
591882
598344
603458
616536
619438
622628
622650
622990
623554
623610
630215
631214
639310
642063
672258
694195
786454
804677
805789
812795
815151
815330
815893
816935
817920
818442
]
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 (166116 , 397161 , 398523 , 404841 , 407566 , 410439 , 414126 , 418188 , 430444 , 448640 , 450399 , 451259 , 455981 , 469549 , 471848 , 487517 , 509821 , 510589 , 510953 , 515734 , 519588 , 527465 , 527669 , 532132 , 536279 , 538915 , 549308 , 550615 , 551005 , 557812 , 557815 , 565468 , 565492 , 566002 , 566014 , 566016 , 575329 , 581972 , 583247 , 583298 , 583851 , 586542 , 591882 , 598344 , 603458 , 616536 , 619438 , 622628 , 622650 , 622990 , 623554 , 623610 , 630215 , 631214 , 639310 , 642063 , 672258 , 694195 , 786454 , 804677 , 805789 , 812795 , 815151 , 815330 , 815893 , 816935 , 817920 , 818442 );
Copy