3
11.19 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
452781
543874
413044
653254
819181
428944
435443
680706
749693
412583
752700
402626
575300
431038
534791
603813
533538
519769
823818
740110
751036
427851
567127
766625
550778
519497
580129
645526
792273
642069
493852
595329
581898
606493
382971
512222
439252
613995
524369
599829
615983
792621
559782
422947
427278
530661
643411
499791
645669
601194
541848
516873
587307
440079
647162
568617
508891
427174
527756
812692
460327
585889
648132
]
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 (452781 , 543874 , 413044 , 653254 , 819181 , 428944 , 435443 , 680706 , 749693 , 412583 , 752700 , 402626 , 575300 , 431038 , 534791 , 603813 , 533538 , 519769 , 823818 , 740110 , 751036 , 427851 , 567127 , 766625 , 550778 , 519497 , 580129 , 645526 , 792273 , 642069 , 493852 , 595329 , 581898 , 606493 , 382971 , 512222 , 439252 , 613995 , 524369 , 599829 , 615983 , 792621 , 559782 , 422947 , 427278 , 530661 , 643411 , 499791 , 645669 , 601194 , 541848 , 516873 , 587307 , 440079 , 647162 , 568617 , 508891 , 427174 , 527756 , 812692 , 460327 , 585889 , 648132 );
Copy
4
2.17 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
382971
402626
412583
413044
422947
427174
427278
427851
428944
431038
435443
439252
440079
452781
460327
493852
499791
508891
512222
516873
519497
519769
524369
527756
530661
533538
534791
541848
543874
550778
559782
567127
568617
575300
580129
581898
585889
587307
595329
599829
601194
603813
606493
613995
615983
642069
643411
645526
645669
647162
648132
653254
680706
740110
749693
751036
752700
766625
792273
792621
812692
819181
823818
]
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 (382971 , 402626 , 412583 , 413044 , 422947 , 427174 , 427278 , 427851 , 428944 , 431038 , 435443 , 439252 , 440079 , 452781 , 460327 , 493852 , 499791 , 508891 , 512222 , 516873 , 519497 , 519769 , 524369 , 527756 , 530661 , 533538 , 534791 , 541848 , 543874 , 550778 , 559782 , 567127 , 568617 , 575300 , 580129 , 581898 , 585889 , 587307 , 595329 , 599829 , 601194 , 603813 , 606493 , 613995 , 615983 , 642069 , 643411 , 645526 , 645669 , 647162 , 648132 , 653254 , 680706 , 740110 , 749693 , 751036 , 752700 , 766625 , 792273 , 792621 , 812692 , 819181 , 823818 );
Copy
5
88.33 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
382971
402626
412583
413044
422947
427174
427278
427851
428944
431038
435443
439252
440079
452781
460327
493852
499791
508891
512222
516873
519497
519769
524369
527756
530661
533538
534791
541848
543874
550778
559782
567127
568617
575300
580129
581898
585889
587307
595329
599829
601194
603813
606493
613995
615983
642069
643411
645526
645669
647162
648132
653254
680706
740110
749693
751036
752700
766625
792273
792621
812692
819181
823818
]
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 (382971 , 402626 , 412583 , 413044 , 422947 , 427174 , 427278 , 427851 , 428944 , 431038 , 435443 , 439252 , 440079 , 452781 , 460327 , 493852 , 499791 , 508891 , 512222 , 516873 , 519497 , 519769 , 524369 , 527756 , 530661 , 533538 , 534791 , 541848 , 543874 , 550778 , 559782 , 567127 , 568617 , 575300 , 580129 , 581898 , 585889 , 587307 , 595329 , 599829 , 601194 , 603813 , 606493 , 613995 , 615983 , 642069 , 643411 , 645526 , 645669 , 647162 , 648132 , 653254 , 680706 , 740110 , 749693 , 751036 , 752700 , 766625 , 792273 , 792621 , 812692 , 819181 , 823818 );
Copy