116.26 ms (66.46%)
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
420675
422208
422398
422413
422441
422805
426173
436452
440987
442390
443971
450910
450966
451410
453801
455660
459099
464706
465162
467684
473923
477456
485790
487802
488030
488372
488809
490996
493892
496448
500110
501414
502882
503153
508377
508519
509641
509792
512610
513825
513869
514030
516786
517118
520570
522050
522441
524142
524989
525087
525941
526238
529549
533138
540723
555114
558958
559238
561898
567848
589015
599078
608541
610605
615823
616990
651836
]
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 (420675 , 422208 , 422398 , 422413 , 422441 , 422805 , 426173 , 436452 , 440987 , 442390 , 443971 , 450910 , 450966 , 451410 , 453801 , 455660 , 459099 , 464706 , 465162 , 467684 , 473923 , 477456 , 485790 , 487802 , 488030 , 488372 , 488809 , 490996 , 493892 , 496448 , 500110 , 501414 , 502882 , 503153 , 508377 , 508519 , 509641 , 509792 , 512610 , 513825 , 513869 , 514030 , 516786 , 517118 , 520570 , 522050 , 522441 , 524142 , 524989 , 525087 , 525941 , 526238 , 529549 , 533138 , 540723 , 555114 , 558958 , 559238 , 561898 , 567848 , 589015 , 599078 , 608541 , 610605 , 615823 , 616990 , 651836 );
Copy
13.29 ms (7.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
493892
485790
450910
450966
522441
442390
561898
559238
615823
436452
422413
426173
453801
467684
422441
465162
509792
533138
502882
509641
487802
488809
496448
529549
422805
455660
526238
488030
516786
490996
513869
508519
558958
651836
608541
589015
464706
420675
477456
503153
508377
514030
524989
525087
513825
517118
488372
500110
440987
522050
512610
567848
540723
555114
459099
520570
501414
451410
422398
443971
422208
524142
610605
473923
525941
616990
599078
]
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 (493892 , 485790 , 450910 , 450966 , 522441 , 442390 , 561898 , 559238 , 615823 , 436452 , 422413 , 426173 , 453801 , 467684 , 422441 , 465162 , 509792 , 533138 , 502882 , 509641 , 487802 , 488809 , 496448 , 529549 , 422805 , 455660 , 526238 , 488030 , 516786 , 490996 , 513869 , 508519 , 558958 , 651836 , 608541 , 589015 , 464706 , 420675 , 477456 , 503153 , 508377 , 514030 , 524989 , 525087 , 513825 , 517118 , 488372 , 500110 , 440987 , 522050 , 512610 , 567848 , 540723 , 555114 , 459099 , 520570 , 501414 , 451410 , 422398 , 443971 , 422208 , 524142 , 610605 , 473923 , 525941 , 616990 , 599078 );
Copy
2.91 ms (1.67%)
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
420675
422208
422398
422413
422441
422805
426173
436452
440987
442390
443971
450910
450966
451410
453801
455660
459099
464706
465162
467684
473923
477456
485790
487802
488030
488372
488809
490996
493892
496448
500110
501414
502882
503153
508377
508519
509641
509792
512610
513825
513869
514030
516786
517118
520570
522050
522441
524142
524989
525087
525941
526238
529549
533138
540723
555114
558958
559238
561898
567848
589015
599078
608541
610605
615823
616990
651836
]
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 (420675 , 422208 , 422398 , 422413 , 422441 , 422805 , 426173 , 436452 , 440987 , 442390 , 443971 , 450910 , 450966 , 451410 , 453801 , 455660 , 459099 , 464706 , 465162 , 467684 , 473923 , 477456 , 485790 , 487802 , 488030 , 488372 , 488809 , 490996 , 493892 , 496448 , 500110 , 501414 , 502882 , 503153 , 508377 , 508519 , 509641 , 509792 , 512610 , 513825 , 513869 , 514030 , 516786 , 517118 , 520570 , 522050 , 522441 , 524142 , 524989 , 525087 , 525941 , 526238 , 529549 , 533138 , 540723 , 555114 , 558958 , 559238 , 561898 , 567848 , 589015 , 599078 , 608541 , 610605 , 615823 , 616990 , 651836 );
Copy