89.29 ms (70.81%)
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
4297
389178
395788
421536
427515
455315
460695
461401
461420
462265
464778
465189
477924
479288
483258
484024
484228
492043
497563
502973
509758
510381
510387
521972
523301
524095
526302
528648
542964
548490
555654
561865
562245
562254
562256
562257
565406
567810
568450
570110
572819
574079
576138
578363
578380
579009
581139
591175
603236
610725
613882
642121
651780
655529
663758
663832
667043
667130
679149
684421
687859
689933
697506
713989
745708
768744
]
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 (4297 , 389178 , 395788 , 421536 , 427515 , 455315 , 460695 , 461401 , 461420 , 462265 , 464778 , 465189 , 477924 , 479288 , 483258 , 484024 , 484228 , 492043 , 497563 , 502973 , 509758 , 510381 , 510387 , 521972 , 523301 , 524095 , 526302 , 528648 , 542964 , 548490 , 555654 , 561865 , 562245 , 562254 , 562256 , 562257 , 565406 , 567810 , 568450 , 570110 , 572819 , 574079 , 576138 , 578363 , 578380 , 579009 , 581139 , 591175 , 603236 , 610725 , 613882 , 642121 , 651780 , 655529 , 663758 , 663832 , 667043 , 667130 , 679149 , 684421 , 687859 , 689933 , 697506 , 713989 , 745708 , 768744 );
Copy
10.45 ms (8.29%)
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
768744
745708
713989
697506
689933
687859
684421
679149
667130
667043
663832
663758
655529
651780
642121
613882
610725
603236
591175
581139
579009
578380
578363
576138
574079
572819
570110
568450
567810
565406
562257
562256
562254
562245
561865
555654
548490
542964
528648
526302
524095
523301
521972
510387
510381
509758
502973
497563
492043
484228
484024
483258
479288
477924
465189
464778
462265
461420
461401
460695
455315
427515
421536
395788
389178
4297
]
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 (768744 , 745708 , 713989 , 697506 , 689933 , 687859 , 684421 , 679149 , 667130 , 667043 , 663832 , 663758 , 655529 , 651780 , 642121 , 613882 , 610725 , 603236 , 591175 , 581139 , 579009 , 578380 , 578363 , 576138 , 574079 , 572819 , 570110 , 568450 , 567810 , 565406 , 562257 , 562256 , 562254 , 562245 , 561865 , 555654 , 548490 , 542964 , 528648 , 526302 , 524095 , 523301 , 521972 , 510387 , 510381 , 509758 , 502973 , 497563 , 492043 , 484228 , 484024 , 483258 , 479288 , 477924 , 465189 , 464778 , 462265 , 461420 , 461401 , 460695 , 455315 , 427515 , 421536 , 395788 , 389178 , 4297 );
Copy
2.42 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
4297
389178
395788
421536
427515
455315
460695
461401
461420
462265
464778
465189
477924
479288
483258
484024
484228
492043
497563
502973
509758
510381
510387
521972
523301
524095
526302
528648
542964
548490
555654
561865
562245
562254
562256
562257
565406
567810
568450
570110
572819
574079
576138
578363
578380
579009
581139
591175
603236
610725
613882
642121
651780
655529
663758
663832
667043
667130
679149
684421
687859
689933
697506
713989
745708
768744
]
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 (4297 , 389178 , 395788 , 421536 , 427515 , 455315 , 460695 , 461401 , 461420 , 462265 , 464778 , 465189 , 477924 , 479288 , 483258 , 484024 , 484228 , 492043 , 497563 , 502973 , 509758 , 510381 , 510387 , 521972 , 523301 , 524095 , 526302 , 528648 , 542964 , 548490 , 555654 , 561865 , 562245 , 562254 , 562256 , 562257 , 565406 , 567810 , 568450 , 570110 , 572819 , 574079 , 576138 , 578363 , 578380 , 579009 , 581139 , 591175 , 603236 , 610725 , 613882 , 642121 , 651780 , 655529 , 663758 , 663832 , 667043 , 667130 , 679149 , 684421 , 687859 , 689933 , 697506 , 713989 , 745708 , 768744 );
Copy