3
11.45 ms
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
475379
796298
639219
507804
667232
815829
470643
617193
765821
788588
518523
466878
479350
478293
330462
454399
688325
561521
584061
554796
462666
565453
823198
765297
566964
468158
455508
622074
513857
737134
511784
649905
758325
607719
454752
578531
491525
538002
511803
467010
644737
617633
580952
554440
720364
470302
728946
564267
649914
623820
481760
422709
546680
790036
455803
503311
489646
597580
609259
492602
468636
630533
641978
647854
647948
599865
633502
567148
529792
630280
]
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 (475379 , 796298 , 639219 , 507804 , 667232 , 815829 , 470643 , 617193 , 765821 , 788588 , 518523 , 466878 , 479350 , 478293 , 330462 , 454399 , 688325 , 561521 , 584061 , 554796 , 462666 , 565453 , 823198 , 765297 , 566964 , 468158 , 455508 , 622074 , 513857 , 737134 , 511784 , 649905 , 758325 , 607719 , 454752 , 578531 , 491525 , 538002 , 511803 , 467010 , 644737 , 617633 , 580952 , 554440 , 720364 , 470302 , 728946 , 564267 , 649914 , 623820 , 481760 , 422709 , 546680 , 790036 , 455803 , 503311 , 489646 , 597580 , 609259 , 492602 , 468636 , 630533 , 641978 , 647854 , 647948 , 599865 , 633502 , 567148 , 529792 , 630280 );
Copy
4
2.12 ms
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
330462
422709
454399
454752
455508
455803
462666
466878
467010
468158
468636
470302
470643
475379
478293
479350
481760
489646
491525
492602
503311
507804
511784
511803
513857
518523
529792
538002
546680
554440
554796
561521
564267
565453
566964
567148
578531
580952
584061
597580
599865
607719
609259
617193
617633
622074
623820
630280
630533
633502
639219
641978
644737
647854
647948
649905
649914
667232
688325
720364
728946
737134
758325
765297
765821
788588
790036
796298
815829
823198
]
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 (330462 , 422709 , 454399 , 454752 , 455508 , 455803 , 462666 , 466878 , 467010 , 468158 , 468636 , 470302 , 470643 , 475379 , 478293 , 479350 , 481760 , 489646 , 491525 , 492602 , 503311 , 507804 , 511784 , 511803 , 513857 , 518523 , 529792 , 538002 , 546680 , 554440 , 554796 , 561521 , 564267 , 565453 , 566964 , 567148 , 578531 , 580952 , 584061 , 597580 , 599865 , 607719 , 609259 , 617193 , 617633 , 622074 , 623820 , 630280 , 630533 , 633502 , 639219 , 641978 , 644737 , 647854 , 647948 , 649905 , 649914 , 667232 , 688325 , 720364 , 728946 , 737134 , 758325 , 765297 , 765821 , 788588 , 790036 , 796298 , 815829 , 823198 );
Copy
5
73.78 ms
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
330462
422709
454399
454752
455508
455803
462666
466878
467010
468158
468636
470302
470643
475379
478293
479350
481760
489646
491525
492602
503311
507804
511784
511803
513857
518523
529792
538002
546680
554440
554796
561521
564267
565453
566964
567148
578531
580952
584061
597580
599865
607719
609259
617193
617633
622074
623820
630280
630533
633502
639219
641978
644737
647854
647948
649905
649914
667232
688325
720364
728946
737134
758325
765297
765821
788588
790036
796298
815829
823198
]
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 (330462 , 422709 , 454399 , 454752 , 455508 , 455803 , 462666 , 466878 , 467010 , 468158 , 468636 , 470302 , 470643 , 475379 , 478293 , 479350 , 481760 , 489646 , 491525 , 492602 , 503311 , 507804 , 511784 , 511803 , 513857 , 518523 , 529792 , 538002 , 546680 , 554440 , 554796 , 561521 , 564267 , 565453 , 566964 , 567148 , 578531 , 580952 , 584061 , 597580 , 599865 , 607719 , 609259 , 617193 , 617633 , 622074 , 623820 , 630280 , 630533 , 633502 , 639219 , 641978 , 644737 , 647854 , 647948 , 649905 , 649914 , 667232 , 688325 , 720364 , 728946 , 737134 , 758325 , 765297 , 765821 , 788588 , 790036 , 796298 , 815829 , 823198 );
Copy