3
12.38 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
570736
475927
542975
647954
650767
600290
523567
416772
556774
561115
457963
509879
552198
662000
599856
420760
452638
530744
467613
583670
630553
593863
622402
809508
430081
565423
599899
678790
593992
524792
630221
432077
537584
530030
533064
678804
585113
810109
428276
548552
631162
445471
573156
419627
455207
530703
530696
544840
599966
632261
421164
642660
539203
530659
555789
520354
805578
486336
634230
640793
526203
486596
558186
572014
]
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 (570736 , 475927 , 542975 , 647954 , 650767 , 600290 , 523567 , 416772 , 556774 , 561115 , 457963 , 509879 , 552198 , 662000 , 599856 , 420760 , 452638 , 530744 , 467613 , 583670 , 630553 , 593863 , 622402 , 809508 , 430081 , 565423 , 599899 , 678790 , 593992 , 524792 , 630221 , 432077 , 537584 , 530030 , 533064 , 678804 , 585113 , 810109 , 428276 , 548552 , 631162 , 445471 , 573156 , 419627 , 455207 , 530703 , 530696 , 544840 , 599966 , 632261 , 421164 , 642660 , 539203 , 530659 , 555789 , 520354 , 805578 , 486336 , 634230 , 640793 , 526203 , 486596 , 558186 , 572014 );
Copy
4
213.04 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
416772
419627
420760
421164
428276
430081
432077
445471
452638
455207
457963
467613
475927
486336
486596
509879
520354
523567
524792
526203
530030
530659
530696
530703
530744
533064
537584
539203
542975
544840
548552
552198
555789
556774
558186
561115
565423
570736
572014
573156
583670
585113
593863
593992
599856
599899
599966
600290
622402
630221
630553
631162
632261
634230
640793
642660
647954
650767
662000
678790
678804
805578
809508
810109
]
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 (416772 , 419627 , 420760 , 421164 , 428276 , 430081 , 432077 , 445471 , 452638 , 455207 , 457963 , 467613 , 475927 , 486336 , 486596 , 509879 , 520354 , 523567 , 524792 , 526203 , 530030 , 530659 , 530696 , 530703 , 530744 , 533064 , 537584 , 539203 , 542975 , 544840 , 548552 , 552198 , 555789 , 556774 , 558186 , 561115 , 565423 , 570736 , 572014 , 573156 , 583670 , 585113 , 593863 , 593992 , 599856 , 599899 , 599966 , 600290 , 622402 , 630221 , 630553 , 631162 , 632261 , 634230 , 640793 , 642660 , 647954 , 650767 , 662000 , 678790 , 678804 , 805578 , 809508 , 810109 );
Copy
5
90.58 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
416772
419627
420760
421164
428276
430081
432077
445471
452638
455207
457963
467613
475927
486336
486596
509879
520354
523567
524792
526203
530030
530659
530696
530703
530744
533064
537584
539203
542975
544840
548552
552198
555789
556774
558186
561115
565423
570736
572014
573156
583670
585113
593863
593992
599856
599899
599966
600290
622402
630221
630553
631162
632261
634230
640793
642660
647954
650767
662000
678790
678804
805578
809508
810109
]
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 (416772 , 419627 , 420760 , 421164 , 428276 , 430081 , 432077 , 445471 , 452638 , 455207 , 457963 , 467613 , 475927 , 486336 , 486596 , 509879 , 520354 , 523567 , 524792 , 526203 , 530030 , 530659 , 530696 , 530703 , 530744 , 533064 , 537584 , 539203 , 542975 , 544840 , 548552 , 552198 , 555789 , 556774 , 558186 , 561115 , 565423 , 570736 , 572014 , 573156 , 583670 , 585113 , 593863 , 593992 , 599856 , 599899 , 599966 , 600290 , 622402 , 630221 , 630553 , 631162 , 632261 , 634230 , 640793 , 642660 , 647954 , 650767 , 662000 , 678790 , 678804 , 805578 , 809508 , 810109 );
Copy