3
219.32 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
383362
784364
411805
503256
500332
416162
420462
720015
690450
823396
800782
762779
579797
810431
827835
535725
810424
472877
810434
810433
810422
556181
497877
425356
540983
579106
719946
820405
566871
610030
822495
719968
719955
821196
590841
612346
767252
801101
602995
443494
637418
821597
542268
457902
424682
584663
736225
418861
820578
776941
507795
526381
600579
581231
526895
693965
425531
789614
428116
672275
427263
821066
756836
448813
583550
823818
]
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 (383362 , 784364 , 411805 , 503256 , 500332 , 416162 , 420462 , 720015 , 690450 , 823396 , 800782 , 762779 , 579797 , 810431 , 827835 , 535725 , 810424 , 472877 , 810434 , 810433 , 810422 , 556181 , 497877 , 425356 , 540983 , 579106 , 719946 , 820405 , 566871 , 610030 , 822495 , 719968 , 719955 , 821196 , 590841 , 612346 , 767252 , 801101 , 602995 , 443494 , 637418 , 821597 , 542268 , 457902 , 424682 , 584663 , 736225 , 418861 , 820578 , 776941 , 507795 , 526381 , 600579 , 581231 , 526895 , 693965 , 425531 , 789614 , 428116 , 672275 , 427263 , 821066 , 756836 , 448813 , 583550 , 823818 );
Copy
4
2.90 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
383362
411805
416162
418861
420462
424682
425356
425531
427263
428116
443494
448813
457902
472877
497877
500332
503256
507795
526381
526895
535725
540983
542268
556181
566871
579106
579797
581231
583550
584663
590841
600579
602995
610030
612346
637418
672275
690450
693965
719946
719955
719968
720015
736225
756836
762779
767252
776941
784364
789614
800782
801101
810422
810424
810431
810433
810434
820405
820578
821066
821196
821597
822495
823396
823818
827835
]
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 (383362 , 411805 , 416162 , 418861 , 420462 , 424682 , 425356 , 425531 , 427263 , 428116 , 443494 , 448813 , 457902 , 472877 , 497877 , 500332 , 503256 , 507795 , 526381 , 526895 , 535725 , 540983 , 542268 , 556181 , 566871 , 579106 , 579797 , 581231 , 583550 , 584663 , 590841 , 600579 , 602995 , 610030 , 612346 , 637418 , 672275 , 690450 , 693965 , 719946 , 719955 , 719968 , 720015 , 736225 , 756836 , 762779 , 767252 , 776941 , 784364 , 789614 , 800782 , 801101 , 810422 , 810424 , 810431 , 810433 , 810434 , 820405 , 820578 , 821066 , 821196 , 821597 , 822495 , 823396 , 823818 , 827835 );
Copy
5
74.82 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
383362
411805
416162
418861
420462
424682
425356
425531
427263
428116
443494
448813
457902
472877
497877
500332
503256
507795
526381
526895
535725
540983
542268
556181
566871
579106
579797
581231
583550
584663
590841
600579
602995
610030
612346
637418
672275
690450
693965
719946
719955
719968
720015
736225
756836
762779
767252
776941
784364
789614
800782
801101
810422
810424
810431
810433
810434
820405
820578
821066
821196
821597
822495
823396
823818
827835
]
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 (383362 , 411805 , 416162 , 418861 , 420462 , 424682 , 425356 , 425531 , 427263 , 428116 , 443494 , 448813 , 457902 , 472877 , 497877 , 500332 , 503256 , 507795 , 526381 , 526895 , 535725 , 540983 , 542268 , 556181 , 566871 , 579106 , 579797 , 581231 , 583550 , 584663 , 590841 , 600579 , 602995 , 610030 , 612346 , 637418 , 672275 , 690450 , 693965 , 719946 , 719955 , 719968 , 720015 , 736225 , 756836 , 762779 , 767252 , 776941 , 784364 , 789614 , 800782 , 801101 , 810422 , 810424 , 810431 , 810433 , 810434 , 820405 , 820578 , 821066 , 821196 , 821597 , 822495 , 823396 , 823818 , 827835 );
Copy