4
11.40 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
751491
773666
806002
817575
645952
787525
580848
708678
588362
457951
669080
605026
568236
807227
749577
559216
581136
805366
669386
800672
786291
807571
645861
532560
575300
586136
598940
497799
648206
641938
809057
790648
701223
815699
553845
457092
826715
613224
770226
779119
547485
590281
669012
457950
825366
479669
526164
424721
475752
750453
581873
555129
580223
457945
600173
803074
446373
539319
667748
543842
814928
588411
516686
641698
511313
605182
]
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 (751491 , 773666 , 806002 , 817575 , 645952 , 787525 , 580848 , 708678 , 588362 , 457951 , 669080 , 605026 , 568236 , 807227 , 749577 , 559216 , 581136 , 805366 , 669386 , 800672 , 786291 , 807571 , 645861 , 532560 , 575300 , 586136 , 598940 , 497799 , 648206 , 641938 , 809057 , 790648 , 701223 , 815699 , 553845 , 457092 , 826715 , 613224 , 770226 , 779119 , 547485 , 590281 , 669012 , 457950 , 825366 , 479669 , 526164 , 424721 , 475752 , 750453 , 581873 , 555129 , 580223 , 457945 , 600173 , 803074 , 446373 , 539319 , 667748 , 543842 , 814928 , 588411 , 516686 , 641698 , 511313 , 605182 );
Copy
5
2.39 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
424721
446373
457092
457945
457950
457951
475752
479669
497799
511313
516686
526164
532560
539319
543842
547485
553845
555129
559216
568236
575300
580223
580848
581136
581873
586136
588362
588411
590281
598940
600173
605026
605182
613224
641698
641938
645861
645952
648206
667748
669012
669080
669386
701223
708678
749577
750453
751491
770226
773666
779119
786291
787525
790648
800672
803074
805366
806002
807227
807571
809057
814928
815699
817575
825366
826715
]
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 (424721 , 446373 , 457092 , 457945 , 457950 , 457951 , 475752 , 479669 , 497799 , 511313 , 516686 , 526164 , 532560 , 539319 , 543842 , 547485 , 553845 , 555129 , 559216 , 568236 , 575300 , 580223 , 580848 , 581136 , 581873 , 586136 , 588362 , 588411 , 590281 , 598940 , 600173 , 605026 , 605182 , 613224 , 641698 , 641938 , 645861 , 645952 , 648206 , 667748 , 669012 , 669080 , 669386 , 701223 , 708678 , 749577 , 750453 , 751491 , 770226 , 773666 , 779119 , 786291 , 787525 , 790648 , 800672 , 803074 , 805366 , 806002 , 807227 , 807571 , 809057 , 814928 , 815699 , 817575 , 825366 , 826715 );
Copy
6
83.67 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
424721
446373
457092
457945
457950
457951
475752
479669
497799
511313
516686
526164
532560
539319
543842
547485
553845
555129
559216
568236
575300
580223
580848
581136
581873
586136
588362
588411
590281
598940
600173
605026
605182
613224
641698
641938
645861
645952
648206
667748
669012
669080
669386
701223
708678
749577
750453
751491
770226
773666
779119
786291
787525
790648
800672
803074
805366
806002
807227
807571
809057
814928
815699
817575
825366
826715
]
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 (424721 , 446373 , 457092 , 457945 , 457950 , 457951 , 475752 , 479669 , 497799 , 511313 , 516686 , 526164 , 532560 , 539319 , 543842 , 547485 , 553845 , 555129 , 559216 , 568236 , 575300 , 580223 , 580848 , 581136 , 581873 , 586136 , 588362 , 588411 , 590281 , 598940 , 600173 , 605026 , 605182 , 613224 , 641698 , 641938 , 645861 , 645952 , 648206 , 667748 , 669012 , 669080 , 669386 , 701223 , 708678 , 749577 , 750453 , 751491 , 770226 , 773666 , 779119 , 786291 , 787525 , 790648 , 800672 , 803074 , 805366 , 806002 , 807227 , 807571 , 809057 , 814928 , 815699 , 817575 , 825366 , 826715 );
Copy