113.91 ms (74.31%)
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
395567
396561
396608
398540
407795
410709
430283
444262
445034
445323
451261
454705
459598
462798
474720
475721
479762
480263
482242
489288
494781
495361
503658
512514
518015
528104
529262
530753
533273
536579
536863
537799
544444
545444
546108
565154
574372
578411
583377
591957
592854
593869
600476
601656
620328
637442
641359
642018
649162
650955
678250
679728
712317
715600
715798
733096
733534
738006
738371
749647
755485
755849
763062
765102
765118
789158
790768
813884
826429
828458
]
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 (395567 , 396561 , 396608 , 398540 , 407795 , 410709 , 430283 , 444262 , 445034 , 445323 , 451261 , 454705 , 459598 , 462798 , 474720 , 475721 , 479762 , 480263 , 482242 , 489288 , 494781 , 495361 , 503658 , 512514 , 518015 , 528104 , 529262 , 530753 , 533273 , 536579 , 536863 , 537799 , 544444 , 545444 , 546108 , 565154 , 574372 , 578411 , 583377 , 591957 , 592854 , 593869 , 600476 , 601656 , 620328 , 637442 , 641359 , 642018 , 649162 , 650955 , 678250 , 679728 , 712317 , 715600 , 715798 , 733096 , 733534 , 738006 , 738371 , 749647 , 755485 , 755849 , 763062 , 765102 , 765118 , 789158 , 790768 , 813884 , 826429 , 828458 );
Copy
13.84 ms (9.03%)
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
396608
451261
789158
712317
641359
396561
593869
528104
430283
395567
518015
462798
790768
826429
601656
755485
738371
537799
763062
678250
733096
533273
494781
600476
480263
828458
546108
398540
813884
715798
620328
749647
715600
475721
765118
530753
445034
591957
765102
733534
512514
459598
489288
574372
649162
755849
738006
482242
444262
410709
529262
536863
474720
454705
544444
583377
592854
495361
650955
445323
407795
536579
679728
479762
642018
565154
637442
578411
503658
545444
]
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 (396608 , 451261 , 789158 , 712317 , 641359 , 396561 , 593869 , 528104 , 430283 , 395567 , 518015 , 462798 , 790768 , 826429 , 601656 , 755485 , 738371 , 537799 , 763062 , 678250 , 733096 , 533273 , 494781 , 600476 , 480263 , 828458 , 546108 , 398540 , 813884 , 715798 , 620328 , 749647 , 715600 , 475721 , 765118 , 530753 , 445034 , 591957 , 765102 , 733534 , 512514 , 459598 , 489288 , 574372 , 649162 , 755849 , 738006 , 482242 , 444262 , 410709 , 529262 , 536863 , 474720 , 454705 , 544444 , 583377 , 592854 , 495361 , 650955 , 445323 , 407795 , 536579 , 679728 , 479762 , 642018 , 565154 , 637442 , 578411 , 503658 , 545444 );
Copy
2.86 ms (1.86%)
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
395567
396561
396608
398540
407795
410709
430283
444262
445034
445323
451261
454705
459598
462798
474720
475721
479762
480263
482242
489288
494781
495361
503658
512514
518015
528104
529262
530753
533273
536579
536863
537799
544444
545444
546108
565154
574372
578411
583377
591957
592854
593869
600476
601656
620328
637442
641359
642018
649162
650955
678250
679728
712317
715600
715798
733096
733534
738006
738371
749647
755485
755849
763062
765102
765118
789158
790768
813884
826429
828458
]
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 (395567 , 396561 , 396608 , 398540 , 407795 , 410709 , 430283 , 444262 , 445034 , 445323 , 451261 , 454705 , 459598 , 462798 , 474720 , 475721 , 479762 , 480263 , 482242 , 489288 , 494781 , 495361 , 503658 , 512514 , 518015 , 528104 , 529262 , 530753 , 533273 , 536579 , 536863 , 537799 , 544444 , 545444 , 546108 , 565154 , 574372 , 578411 , 583377 , 591957 , 592854 , 593869 , 600476 , 601656 , 620328 , 637442 , 641359 , 642018 , 649162 , 650955 , 678250 , 679728 , 712317 , 715600 , 715798 , 733096 , 733534 , 738006 , 738371 , 749647 , 755485 , 755849 , 763062 , 765102 , 765118 , 789158 , 790768 , 813884 , 826429 , 828458 );
Copy