99.84 ms (63.38%)
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
146112
388757
398769
411374
443770
454231
454256
454259
454267
454274
454277
460732
462074
462076
462083
462096
462104
462105
462268
462319
463172
466069
466147
466885
470763
470779
471062
471067
471969
471981
472421
476282
476356
477707
479063
479106
479765
483360
484643
485700
485725
485752
485774
485777
485942
486814
499865
506051
518834
518842
518853
518869
518873
519143
519146
520894
524882
526729
546941
549233
549776
565578
568325
576157
714470
]
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 (146112 , 388757 , 398769 , 411374 , 443770 , 454231 , 454256 , 454259 , 454267 , 454274 , 454277 , 460732 , 462074 , 462076 , 462083 , 462096 , 462104 , 462105 , 462268 , 462319 , 463172 , 466069 , 466147 , 466885 , 470763 , 470779 , 471062 , 471067 , 471969 , 471981 , 472421 , 476282 , 476356 , 477707 , 479063 , 479106 , 479765 , 483360 , 484643 , 485700 , 485725 , 485752 , 485774 , 485777 , 485942 , 486814 , 499865 , 506051 , 518834 , 518842 , 518853 , 518869 , 518873 , 519143 , 519146 , 520894 , 524882 , 526729 , 546941 , 549233 , 549776 , 565578 , 568325 , 576157 , 714470 );
Copy
13.30 ms (8.44%)
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
486814
146112
472421
485725
518869
476356
519143
411374
499865
471981
471969
714470
462104
479106
520894
485942
546941
466885
463172
454231
388757
443770
485752
518873
454256
568325
398769
466147
519146
470779
462268
549776
460732
506051
483360
479063
576157
526729
470763
518842
485774
462083
462105
476282
454259
471062
479765
477707
454267
565578
462076
518834
454277
518853
462096
462074
454274
462319
484643
485777
466069
485700
471067
524882
549233
]
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 (486814 , 146112 , 472421 , 485725 , 518869 , 476356 , 519143 , 411374 , 499865 , 471981 , 471969 , 714470 , 462104 , 479106 , 520894 , 485942 , 546941 , 466885 , 463172 , 454231 , 388757 , 443770 , 485752 , 518873 , 454256 , 568325 , 398769 , 466147 , 519146 , 470779 , 462268 , 549776 , 460732 , 506051 , 483360 , 479063 , 576157 , 526729 , 470763 , 518842 , 485774 , 462083 , 462105 , 476282 , 454259 , 471062 , 479765 , 477707 , 454267 , 565578 , 462076 , 518834 , 454277 , 518853 , 462096 , 462074 , 454274 , 462319 , 484643 , 485777 , 466069 , 485700 , 471067 , 524882 , 549233 );
Copy
2.66 ms (1.69%)
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
146112
388757
398769
411374
443770
454231
454256
454259
454267
454274
454277
460732
462074
462076
462083
462096
462104
462105
462268
462319
463172
466069
466147
466885
470763
470779
471062
471067
471969
471981
472421
476282
476356
477707
479063
479106
479765
483360
484643
485700
485725
485752
485774
485777
485942
486814
499865
506051
518834
518842
518853
518869
518873
519143
519146
520894
524882
526729
546941
549233
549776
565578
568325
576157
714470
]
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 (146112 , 388757 , 398769 , 411374 , 443770 , 454231 , 454256 , 454259 , 454267 , 454274 , 454277 , 460732 , 462074 , 462076 , 462083 , 462096 , 462104 , 462105 , 462268 , 462319 , 463172 , 466069 , 466147 , 466885 , 470763 , 470779 , 471062 , 471067 , 471969 , 471981 , 472421 , 476282 , 476356 , 477707 , 479063 , 479106 , 479765 , 483360 , 484643 , 485700 , 485725 , 485752 , 485774 , 485777 , 485942 , 486814 , 499865 , 506051 , 518834 , 518842 , 518853 , 518869 , 518873 , 519143 , 519146 , 520894 , 524882 , 526729 , 546941 , 549233 , 549776 , 565578 , 568325 , 576157 , 714470 );
Copy