3
14.43 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
518868
414120
390857
415742
454114
324568
383327
305824
386727
389785
391081
154516
414762
415039
469147
413008
468376
548039
459899
498167
386939
419569
504005
457201
15129
454008
461028
741780
400999
458080
403404
455889
24993
445920
509161
504665
518353
498768
508638
393705
62175
401773
416237
456460
403323
445720
481956
400493
446090
488118
400638
449613
465224
473426
428117
428884
461788
493132
397881
450172
454224
446545
445792
450224
496544
421863
491418
453159
447031
467476
461025
507944
549187
]
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 (518868 , 414120 , 390857 , 415742 , 454114 , 324568 , 383327 , 305824 , 386727 , 389785 , 391081 , 154516 , 414762 , 415039 , 469147 , 413008 , 468376 , 548039 , 459899 , 498167 , 386939 , 419569 , 504005 , 457201 , 15129 , 454008 , 461028 , 741780 , 400999 , 458080 , 403404 , 455889 , 24993 , 445920 , 509161 , 504665 , 518353 , 498768 , 508638 , 393705 , 62175 , 401773 , 416237 , 456460 , 403323 , 445720 , 481956 , 400493 , 446090 , 488118 , 400638 , 449613 , 465224 , 473426 , 428117 , 428884 , 461788 , 493132 , 397881 , 450172 , 454224 , 446545 , 445792 , 450224 , 496544 , 421863 , 491418 , 453159 , 447031 , 467476 , 461025 , 507944 , 549187 );
Copy
4
2.79 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
15129
24993
62175
154516
305824
324568
383327
386727
386939
389785
390857
391081
393705
397881
400493
400638
400999
401773
403323
403404
413008
414120
414762
415039
415742
416237
419569
421863
428117
428884
445720
445792
445920
446090
446545
447031
449613
450172
450224
453159
454008
454114
454224
455889
456460
457201
458080
459899
461025
461028
461788
465224
467476
468376
469147
473426
481956
488118
491418
493132
496544
498167
498768
504005
504665
507944
508638
509161
518353
518868
548039
549187
741780
]
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 (15129 , 24993 , 62175 , 154516 , 305824 , 324568 , 383327 , 386727 , 386939 , 389785 , 390857 , 391081 , 393705 , 397881 , 400493 , 400638 , 400999 , 401773 , 403323 , 403404 , 413008 , 414120 , 414762 , 415039 , 415742 , 416237 , 419569 , 421863 , 428117 , 428884 , 445720 , 445792 , 445920 , 446090 , 446545 , 447031 , 449613 , 450172 , 450224 , 453159 , 454008 , 454114 , 454224 , 455889 , 456460 , 457201 , 458080 , 459899 , 461025 , 461028 , 461788 , 465224 , 467476 , 468376 , 469147 , 473426 , 481956 , 488118 , 491418 , 493132 , 496544 , 498167 , 498768 , 504005 , 504665 , 507944 , 508638 , 509161 , 518353 , 518868 , 548039 , 549187 , 741780 );
Copy
5
80.66 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
15129
24993
62175
154516
305824
324568
383327
386727
386939
389785
390857
391081
393705
397881
400493
400638
400999
401773
403323
403404
413008
414120
414762
415039
415742
416237
419569
421863
428117
428884
445720
445792
445920
446090
446545
447031
449613
450172
450224
453159
454008
454114
454224
455889
456460
457201
458080
459899
461025
461028
461788
465224
467476
468376
469147
473426
481956
488118
491418
493132
496544
498167
498768
504005
504665
507944
508638
509161
518353
518868
548039
549187
741780
]
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 (15129 , 24993 , 62175 , 154516 , 305824 , 324568 , 383327 , 386727 , 386939 , 389785 , 390857 , 391081 , 393705 , 397881 , 400493 , 400638 , 400999 , 401773 , 403323 , 403404 , 413008 , 414120 , 414762 , 415039 , 415742 , 416237 , 419569 , 421863 , 428117 , 428884 , 445720 , 445792 , 445920 , 446090 , 446545 , 447031 , 449613 , 450172 , 450224 , 453159 , 454008 , 454114 , 454224 , 455889 , 456460 , 457201 , 458080 , 459899 , 461025 , 461028 , 461788 , 465224 , 467476 , 468376 , 469147 , 473426 , 481956 , 488118 , 491418 , 493132 , 496544 , 498167 , 498768 , 504005 , 504665 , 507944 , 508638 , 509161 , 518353 , 518868 , 548039 , 549187 , 741780 );
Copy