4
13.47 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
449883
455859
461048
460642
515165
536865
527101
520730
537123
540697
564387
559779
555657
665957
675081
690783
587920
458245
481654
423821
440631
450953
512551
529219
515158
515167
520721
515189
385911
462527
468048
537249
547473
569389
570743
567066
433497
515171
487902
513569
515170
515175
529206
515153
515160
520774
550629
586631
601900
520720
515152
515194
388712
485061
515191
482174
486540
656370
584929
630177
515185
515186
655322
602981
427981
515131
515187
586628
617165
]
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 (449883 , 455859 , 461048 , 460642 , 515165 , 536865 , 527101 , 520730 , 537123 , 540697 , 564387 , 559779 , 555657 , 665957 , 675081 , 690783 , 587920 , 458245 , 481654 , 423821 , 440631 , 450953 , 512551 , 529219 , 515158 , 515167 , 520721 , 515189 , 385911 , 462527 , 468048 , 537249 , 547473 , 569389 , 570743 , 567066 , 433497 , 515171 , 487902 , 513569 , 515170 , 515175 , 529206 , 515153 , 515160 , 520774 , 550629 , 586631 , 601900 , 520720 , 515152 , 515194 , 388712 , 485061 , 515191 , 482174 , 486540 , 656370 , 584929 , 630177 , 515185 , 515186 , 655322 , 602981 , 427981 , 515131 , 515187 , 586628 , 617165 );
Copy
5
2.57 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
385911
388712
423821
427981
433497
440631
449883
450953
455859
458245
460642
461048
462527
468048
481654
482174
485061
486540
487902
512551
513569
515131
515152
515153
515158
515160
515165
515167
515170
515171
515175
515185
515186
515187
515189
515191
515194
520720
520721
520730
520774
527101
529206
529219
536865
537123
537249
540697
547473
550629
555657
559779
564387
567066
569389
570743
584929
586628
586631
587920
601900
602981
617165
630177
655322
656370
665957
675081
690783
]
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 (385911 , 388712 , 423821 , 427981 , 433497 , 440631 , 449883 , 450953 , 455859 , 458245 , 460642 , 461048 , 462527 , 468048 , 481654 , 482174 , 485061 , 486540 , 487902 , 512551 , 513569 , 515131 , 515152 , 515153 , 515158 , 515160 , 515165 , 515167 , 515170 , 515171 , 515175 , 515185 , 515186 , 515187 , 515189 , 515191 , 515194 , 520720 , 520721 , 520730 , 520774 , 527101 , 529206 , 529219 , 536865 , 537123 , 537249 , 540697 , 547473 , 550629 , 555657 , 559779 , 564387 , 567066 , 569389 , 570743 , 584929 , 586628 , 586631 , 587920 , 601900 , 602981 , 617165 , 630177 , 655322 , 656370 , 665957 , 675081 , 690783 );
Copy
6
91.57 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
385911
388712
423821
427981
433497
440631
449883
450953
455859
458245
460642
461048
462527
468048
481654
482174
485061
486540
487902
512551
513569
515131
515152
515153
515158
515160
515165
515167
515170
515171
515175
515185
515186
515187
515189
515191
515194
520720
520721
520730
520774
527101
529206
529219
536865
537123
537249
540697
547473
550629
555657
559779
564387
567066
569389
570743
584929
586628
586631
587920
601900
602981
617165
630177
655322
656370
665957
675081
690783
]
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 (385911 , 388712 , 423821 , 427981 , 433497 , 440631 , 449883 , 450953 , 455859 , 458245 , 460642 , 461048 , 462527 , 468048 , 481654 , 482174 , 485061 , 486540 , 487902 , 512551 , 513569 , 515131 , 515152 , 515153 , 515158 , 515160 , 515165 , 515167 , 515170 , 515171 , 515175 , 515185 , 515186 , 515187 , 515189 , 515191 , 515194 , 520720 , 520721 , 520730 , 520774 , 527101 , 529206 , 529219 , 536865 , 537123 , 537249 , 540697 , 547473 , 550629 , 555657 , 559779 , 564387 , 567066 , 569389 , 570743 , 584929 , 586628 , 586631 , 587920 , 601900 , 602981 , 617165 , 630177 , 655322 , 656370 , 665957 , 675081 , 690783 );
Copy