79.69 ms (73.84%)
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
416123
424751
428283
439472
443559
447416
447718
458384
459781
466376
471083
478108
487872
489257
489258
490786
494693
497026
501710
505129
505795
506478
510393
513222
515953
517842
518219
518232
519186
520205
521152
523668
523822
528282
530633
531155
531251
532735
532995
533726
533738
534769
537114
537944
540437
545383
550194
562311
566525
566592
579480
592770
601147
609814
631256
640793
641088
644065
650177
679101
786815
793470
807687
]
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 (416123 , 424751 , 428283 , 439472 , 443559 , 447416 , 447718 , 458384 , 459781 , 466376 , 471083 , 478108 , 487872 , 489257 , 489258 , 490786 , 494693 , 497026 , 501710 , 505129 , 505795 , 506478 , 510393 , 513222 , 515953 , 517842 , 518219 , 518232 , 519186 , 520205 , 521152 , 523668 , 523822 , 528282 , 530633 , 531155 , 531251 , 532735 , 532995 , 533726 , 533738 , 534769 , 537114 , 537944 , 540437 , 545383 , 550194 , 562311 , 566525 , 566592 , 579480 , 592770 , 601147 , 609814 , 631256 , 640793 , 641088 , 644065 , 650177 , 679101 , 786815 , 793470 , 807687 );
Copy
14.68 ms (13.60%)
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
566592
579480
679101
650177
641088
786815
793470
459781
416123
428283
494693
518232
523668
487872
458384
534769
519186
521152
489257
566525
807687
609814
631256
471083
439472
447416
490786
497026
510393
530633
515953
545383
562311
644065
506478
518219
489258
517842
466376
533738
528282
537944
532735
550194
601147
592770
447718
443559
505129
513222
478108
532995
531251
533726
537114
640793
520205
501710
505795
424751
505794
540437
531155
523822
]
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 (566592 , 579480 , 679101 , 650177 , 641088 , 786815 , 793470 , 459781 , 416123 , 428283 , 494693 , 518232 , 523668 , 487872 , 458384 , 534769 , 519186 , 521152 , 489257 , 566525 , 807687 , 609814 , 631256 , 471083 , 439472 , 447416 , 490786 , 497026 , 510393 , 530633 , 515953 , 545383 , 562311 , 644065 , 506478 , 518219 , 489258 , 517842 , 466376 , 533738 , 528282 , 537944 , 532735 , 550194 , 601147 , 592770 , 447718 , 443559 , 505129 , 513222 , 478108 , 532995 , 531251 , 533726 , 537114 , 640793 , 520205 , 501710 , 505795 , 424751 , 505794 , 540437 , 531155 , 523822 );
Copy
2.01 ms (1.87%)
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
416123
424751
428283
439472
443559
447416
447718
458384
459781
466376
471083
478108
487872
489257
489258
490786
494693
497026
501710
505129
505795
506478
510393
513222
515953
517842
518219
518232
519186
520205
521152
523668
523822
528282
530633
531155
531251
532735
532995
533726
533738
534769
537114
537944
540437
545383
550194
562311
566525
566592
579480
592770
601147
609814
631256
640793
641088
644065
650177
679101
786815
793470
807687
]
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 (416123 , 424751 , 428283 , 439472 , 443559 , 447416 , 447718 , 458384 , 459781 , 466376 , 471083 , 478108 , 487872 , 489257 , 489258 , 490786 , 494693 , 497026 , 501710 , 505129 , 505795 , 506478 , 510393 , 513222 , 515953 , 517842 , 518219 , 518232 , 519186 , 520205 , 521152 , 523668 , 523822 , 528282 , 530633 , 531155 , 531251 , 532735 , 532995 , 533726 , 533738 , 534769 , 537114 , 537944 , 540437 , 545383 , 550194 , 562311 , 566525 , 566592 , 579480 , 592770 , 601147 , 609814 , 631256 , 640793 , 641088 , 644065 , 650177 , 679101 , 786815 , 793470 , 807687 );
Copy