288.83 ms (92.33%)
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
131908
384542
407028
416036
421007
427208
450973
452797
458911
466850
472755
488753
507078
507616
507686
507703
511027
511028
511030
511031
511033
513761
525372
525747
528443
534776
547388
547390
549875
554454
581876
594106
595929
601657
603683
613485
616114
621997
624145
628111
632569
634770
639307
641853
642773
648594
649523
650657
653513
657466
665642
697705
699485
716094
720247
729821
752702
756212
768949
770246
770356
777121
788127
795187
800356
811525
820686
828299
]
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 (131908 , 384542 , 407028 , 416036 , 421007 , 427208 , 450973 , 452797 , 458911 , 466850 , 472755 , 488753 , 507078 , 507616 , 507686 , 507703 , 511027 , 511028 , 511030 , 511031 , 511033 , 513761 , 525372 , 525747 , 528443 , 534776 , 547388 , 547390 , 549875 , 554454 , 581876 , 594106 , 595929 , 601657 , 603683 , 613485 , 616114 , 621997 , 624145 , 628111 , 632569 , 634770 , 639307 , 641853 , 642773 , 648594 , 649523 , 650657 , 653513 , 657466 , 665642 , 697705 , 699485 , 716094 , 720247 , 729821 , 752702 , 756212 , 768949 , 770246 , 770356 , 777121 , 788127 , 795187 , 800356 , 811525 , 820686 , 828299 );
Copy
12.48 ms (3.99%)
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
697705
777121
752702
828302
699485
554454
770246
621997
770356
820686
828299
472755
768949
639307
716094
547388
549875
795187
800356
427208
488753
657466
648594
624145
595929
131908
507703
511027
720247
650657
616114
788127
665642
653513
601657
603683
628111
811525
729821
458911
416036
421007
450973
466850
547390
511030
525747
507686
525372
649523
581876
594106
634770
613485
756212
407028
507616
452797
511031
534776
511033
641853
384542
528443
507078
511028
642773
632569
513761
]
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 (697705 , 777121 , 752702 , 828302 , 699485 , 554454 , 770246 , 621997 , 770356 , 820686 , 828299 , 472755 , 768949 , 639307 , 716094 , 547388 , 549875 , 795187 , 800356 , 427208 , 488753 , 657466 , 648594 , 624145 , 595929 , 131908 , 507703 , 511027 , 720247 , 650657 , 616114 , 788127 , 665642 , 653513 , 601657 , 603683 , 628111 , 811525 , 729821 , 458911 , 416036 , 421007 , 450973 , 466850 , 547390 , 511030 , 525747 , 507686 , 525372 , 649523 , 581876 , 594106 , 634770 , 613485 , 756212 , 407028 , 507616 , 452797 , 511031 , 534776 , 511033 , 641853 , 384542 , 528443 , 507078 , 511028 , 642773 , 632569 , 513761 );
Copy
2.40 ms (0.77%)
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
131908
384542
407028
416036
421007
427208
450973
452797
458911
466850
472755
488753
507078
507616
507686
507703
511027
511028
511030
511031
511033
513761
525372
525747
528443
534776
547388
547390
549875
554454
581876
594106
595929
601657
603683
613485
616114
621997
624145
628111
632569
634770
639307
641853
642773
648594
649523
650657
653513
657466
665642
697705
699485
716094
720247
729821
752702
756212
768949
770246
770356
777121
788127
795187
800356
811525
820686
828299
]
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 (131908 , 384542 , 407028 , 416036 , 421007 , 427208 , 450973 , 452797 , 458911 , 466850 , 472755 , 488753 , 507078 , 507616 , 507686 , 507703 , 511027 , 511028 , 511030 , 511031 , 511033 , 513761 , 525372 , 525747 , 528443 , 534776 , 547388 , 547390 , 549875 , 554454 , 581876 , 594106 , 595929 , 601657 , 603683 , 613485 , 616114 , 621997 , 624145 , 628111 , 632569 , 634770 , 639307 , 641853 , 642773 , 648594 , 649523 , 650657 , 653513 , 657466 , 665642 , 697705 , 699485 , 716094 , 720247 , 729821 , 752702 , 756212 , 768949 , 770246 , 770356 , 777121 , 788127 , 795187 , 800356 , 811525 , 820686 , 828299 );
Copy