4
12.35 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
481879
476343
505625
518750
526675
531500
688548
565923
586805
609102
586457
606738
612843
524560
521243
486253
428833
484592
430661
484648
521149
493222
552319
584484
568665
673659
673988
606806
384016
431422
462483
493221
492121
505018
430853
431112
471626
531431
531513
682531
673960
605461
608084
406298
448669
527669
486198
561478
397527
603703
484463
556535
609652
403939
428854
528089
422192
463842
573754
556009
598865
590723
464328
430018
484706
]
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 (481879 , 476343 , 505625 , 518750 , 526675 , 531500 , 688548 , 565923 , 586805 , 609102 , 586457 , 606738 , 612843 , 524560 , 521243 , 486253 , 428833 , 484592 , 430661 , 484648 , 521149 , 493222 , 552319 , 584484 , 568665 , 673659 , 673988 , 606806 , 384016 , 431422 , 462483 , 493221 , 492121 , 505018 , 430853 , 431112 , 471626 , 531431 , 531513 , 682531 , 673960 , 605461 , 608084 , 406298 , 448669 , 527669 , 486198 , 561478 , 397527 , 603703 , 484463 , 556535 , 609652 , 403939 , 428854 , 528089 , 422192 , 463842 , 573754 , 556009 , 598865 , 590723 , 464328 , 430018 , 484706 );
Copy
5
2.48 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
384016
397527
403939
406298
422192
428833
428854
430018
430661
430853
431112
431422
448669
462483
463842
464328
471626
476343
481879
484463
484592
484648
484706
486198
486253
492121
493221
493222
505018
505625
518750
521149
521243
524560
526675
527669
528089
531431
531500
531513
552319
556009
556535
561478
565923
568665
573754
584484
586457
586805
590723
598865
603703
605461
606738
606806
608084
609102
609652
612843
673659
673960
673988
682531
688548
]
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 (384016 , 397527 , 403939 , 406298 , 422192 , 428833 , 428854 , 430018 , 430661 , 430853 , 431112 , 431422 , 448669 , 462483 , 463842 , 464328 , 471626 , 476343 , 481879 , 484463 , 484592 , 484648 , 484706 , 486198 , 486253 , 492121 , 493221 , 493222 , 505018 , 505625 , 518750 , 521149 , 521243 , 524560 , 526675 , 527669 , 528089 , 531431 , 531500 , 531513 , 552319 , 556009 , 556535 , 561478 , 565923 , 568665 , 573754 , 584484 , 586457 , 586805 , 590723 , 598865 , 603703 , 605461 , 606738 , 606806 , 608084 , 609102 , 609652 , 612843 , 673659 , 673960 , 673988 , 682531 , 688548 );
Copy
6
92.11 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
384016
397527
403939
406298
422192
428833
428854
430018
430661
430853
431112
431422
448669
462483
463842
464328
471626
476343
481879
484463
484592
484648
484706
486198
486253
492121
493221
493222
505018
505625
518750
521149
521243
524560
526675
527669
528089
531431
531500
531513
552319
556009
556535
561478
565923
568665
573754
584484
586457
586805
590723
598865
603703
605461
606738
606806
608084
609102
609652
612843
673659
673960
673988
682531
688548
]
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 (384016 , 397527 , 403939 , 406298 , 422192 , 428833 , 428854 , 430018 , 430661 , 430853 , 431112 , 431422 , 448669 , 462483 , 463842 , 464328 , 471626 , 476343 , 481879 , 484463 , 484592 , 484648 , 484706 , 486198 , 486253 , 492121 , 493221 , 493222 , 505018 , 505625 , 518750 , 521149 , 521243 , 524560 , 526675 , 527669 , 528089 , 531431 , 531500 , 531513 , 552319 , 556009 , 556535 , 561478 , 565923 , 568665 , 573754 , 584484 , 586457 , 586805 , 590723 , 598865 , 603703 , 605461 , 606738 , 606806 , 608084 , 609102 , 609652 , 612843 , 673659 , 673960 , 673988 , 682531 , 688548 );
Copy