4
9.82 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
631970
810696
443588
405951
511722
512335
527013
399858
418350
440692
458962
461594
531569
543084
581089
543180
554164
552046
584254
695159
595734
614781
787944
458593
527729
527860
513657
458827
473891
521790
540026
543779
556938
543191
543435
550347
586511
399922
497317
511709
521569
524365
528639
399869
459416
514677
543201
543461
565933
543144
574301
590750
586518
513638
525380
466987
520728
467248
453916
520734
514218
543198
591438
]
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 (631970 , 810696 , 443588 , 405951 , 511722 , 512335 , 527013 , 399858 , 418350 , 440692 , 458962 , 461594 , 531569 , 543084 , 581089 , 543180 , 554164 , 552046 , 584254 , 695159 , 595734 , 614781 , 787944 , 458593 , 527729 , 527860 , 513657 , 458827 , 473891 , 521790 , 540026 , 543779 , 556938 , 543191 , 543435 , 550347 , 586511 , 399922 , 497317 , 511709 , 521569 , 524365 , 528639 , 399869 , 459416 , 514677 , 543201 , 543461 , 565933 , 543144 , 574301 , 590750 , 586518 , 513638 , 525380 , 466987 , 520728 , 467248 , 453916 , 520734 , 514218 , 543198 , 591438 );
Copy
5
2.28 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
399858
399869
399922
405951
418350
440692
443588
453916
458593
458827
458962
459416
461594
466987
467248
473891
497317
511709
511722
512335
513638
513657
514218
514677
520728
520734
521569
521790
524365
525380
527013
527729
527860
528639
531569
540026
543084
543144
543180
543191
543198
543201
543435
543461
543779
550347
552046
554164
556938
565933
574301
581089
584254
586511
586518
590750
591438
595734
614781
631970
695159
787944
810696
]
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 (399858 , 399869 , 399922 , 405951 , 418350 , 440692 , 443588 , 453916 , 458593 , 458827 , 458962 , 459416 , 461594 , 466987 , 467248 , 473891 , 497317 , 511709 , 511722 , 512335 , 513638 , 513657 , 514218 , 514677 , 520728 , 520734 , 521569 , 521790 , 524365 , 525380 , 527013 , 527729 , 527860 , 528639 , 531569 , 540026 , 543084 , 543144 , 543180 , 543191 , 543198 , 543201 , 543435 , 543461 , 543779 , 550347 , 552046 , 554164 , 556938 , 565933 , 574301 , 581089 , 584254 , 586511 , 586518 , 590750 , 591438 , 595734 , 614781 , 631970 , 695159 , 787944 , 810696 );
Copy
6
86.60 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
399858
399869
399922
405951
418350
440692
443588
453916
458593
458827
458962
459416
461594
466987
467248
473891
497317
511709
511722
512335
513638
513657
514218
514677
520728
520734
521569
521790
524365
525380
527013
527729
527860
528639
531569
540026
543084
543144
543180
543191
543198
543201
543435
543461
543779
550347
552046
554164
556938
565933
574301
581089
584254
586511
586518
590750
591438
595734
614781
631970
695159
787944
810696
]
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 (399858 , 399869 , 399922 , 405951 , 418350 , 440692 , 443588 , 453916 , 458593 , 458827 , 458962 , 459416 , 461594 , 466987 , 467248 , 473891 , 497317 , 511709 , 511722 , 512335 , 513638 , 513657 , 514218 , 514677 , 520728 , 520734 , 521569 , 521790 , 524365 , 525380 , 527013 , 527729 , 527860 , 528639 , 531569 , 540026 , 543084 , 543144 , 543180 , 543191 , 543198 , 543201 , 543435 , 543461 , 543779 , 550347 , 552046 , 554164 , 556938 , 565933 , 574301 , 581089 , 584254 , 586511 , 586518 , 590750 , 591438 , 595734 , 614781 , 631970 , 695159 , 787944 , 810696 );
Copy