3
8.84 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
806352
722363
606223
817251
742638
606142
818113
827916
789705
816586
823145
566555
760695
742247
692365
694707
717074
821450
727392
807608
788583
815157
538298
760823
727190
763280
764802
780930
397255
547993
684018
782993
672258
755426
818459
594108
590282
815263
718040
614032
789699
598864
770277
772079
797646
813110
531493
599524
474463
437338
569166
395550
559049
754224
519957
516792
523760
424798
403010
449228
531424
814850
682107
793757
620739
517388
446132
545779
750611
389519
631170
531076
565467
465270
531513
641127
]
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 (806352 , 722363 , 606223 , 817251 , 742638 , 606142 , 818113 , 827916 , 789705 , 816586 , 823145 , 566555 , 760695 , 742247 , 692365 , 694707 , 717074 , 821450 , 727392 , 807608 , 788583 , 815157 , 538298 , 760823 , 727190 , 763280 , 764802 , 780930 , 397255 , 547993 , 684018 , 782993 , 672258 , 755426 , 818459 , 594108 , 590282 , 815263 , 718040 , 614032 , 789699 , 598864 , 770277 , 772079 , 797646 , 813110 , 531493 , 599524 , 474463 , 437338 , 569166 , 395550 , 559049 , 754224 , 519957 , 516792 , 523760 , 424798 , 403010 , 449228 , 531424 , 814850 , 682107 , 793757 , 620739 , 517388 , 446132 , 545779 , 750611 , 389519 , 631170 , 531076 , 565467 , 465270 , 531513 , 641127 );
Copy
4
2.20 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
389519
395550
397255
403010
424798
437338
446132
449228
465270
474463
516792
517388
519957
523760
531076
531424
531493
531513
538298
545779
547993
559049
565467
566555
569166
590282
594108
598864
599524
606142
606223
614032
620739
631170
641127
672258
682107
684018
692365
694707
717074
718040
722363
727190
727392
742247
742638
750611
754224
755426
760695
760823
763280
764802
770277
780930
782993
788583
789699
789705
793757
797646
806352
807608
813110
814850
815157
815263
816586
817251
818113
818459
821450
823145
827916
]
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 (389519 , 395550 , 397255 , 403010 , 424798 , 437338 , 446132 , 449228 , 465270 , 474463 , 516792 , 517388 , 519957 , 523760 , 531076 , 531424 , 531493 , 531513 , 538298 , 545779 , 547993 , 559049 , 565467 , 566555 , 569166 , 590282 , 594108 , 598864 , 599524 , 606142 , 606223 , 614032 , 620739 , 631170 , 641127 , 672258 , 682107 , 684018 , 692365 , 694707 , 717074 , 718040 , 722363 , 727190 , 727392 , 742247 , 742638 , 750611 , 754224 , 755426 , 760695 , 760823 , 763280 , 764802 , 770277 , 780930 , 782993 , 788583 , 789699 , 789705 , 793757 , 797646 , 806352 , 807608 , 813110 , 814850 , 815157 , 815263 , 816586 , 817251 , 818113 , 818459 , 821450 , 823145 , 827916 );
Copy
5
94.34 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
389519
395550
397255
403010
424798
437338
446132
449228
465270
474463
516792
517388
519957
523760
531076
531424
531493
531513
538298
545779
547993
559049
565467
566555
569166
590282
594108
598864
599524
606142
606223
614032
620739
631170
641127
672258
682107
684018
692365
694707
717074
718040
722363
727190
727392
742247
742638
750611
754224
755426
760695
760823
763280
764802
770277
780930
782993
788583
789699
789705
793757
797646
806352
807608
813110
814850
815157
815263
816586
817251
818113
818459
821450
823145
827916
]
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 (389519 , 395550 , 397255 , 403010 , 424798 , 437338 , 446132 , 449228 , 465270 , 474463 , 516792 , 517388 , 519957 , 523760 , 531076 , 531424 , 531493 , 531513 , 538298 , 545779 , 547993 , 559049 , 565467 , 566555 , 569166 , 590282 , 594108 , 598864 , 599524 , 606142 , 606223 , 614032 , 620739 , 631170 , 641127 , 672258 , 682107 , 684018 , 692365 , 694707 , 717074 , 718040 , 722363 , 727190 , 727392 , 742247 , 742638 , 750611 , 754224 , 755426 , 760695 , 760823 , 763280 , 764802 , 770277 , 780930 , 782993 , 788583 , 789699 , 789705 , 793757 , 797646 , 806352 , 807608 , 813110 , 814850 , 815157 , 815263 , 816586 , 817251 , 818113 , 818459 , 821450 , 823145 , 827916 );
Copy