3
9.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
699544
670074
751415
729937
719937
563871
676476
754205
736070
774484
636405
719960
719946
676944
684843
684855
779302
811441
748032
774121
389199
719955
732135
749468
585109
812155
676969
681355
639210
437856
747153
610610
771138
536100
662833
720813
709228
740910
755975
597899
598814
802275
755854
388032
449447
556945
472399
684845
685982
563325
480766
123614
683588
429223
447524
422444
449678
519486
563854
501748
492002
513768
413826
677025
492267
625675
565067
]
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 (699544 , 670074 , 751415 , 729937 , 719937 , 563871 , 676476 , 754205 , 736070 , 774484 , 636405 , 719960 , 719946 , 676944 , 684843 , 684855 , 779302 , 811441 , 748032 , 774121 , 389199 , 719955 , 732135 , 749468 , 585109 , 812155 , 676969 , 681355 , 639210 , 437856 , 747153 , 610610 , 771138 , 536100 , 662833 , 720813 , 709228 , 740910 , 755975 , 597899 , 598814 , 802275 , 755854 , 388032 , 449447 , 556945 , 472399 , 684845 , 685982 , 563325 , 480766 , 123614 , 683588 , 429223 , 447524 , 422444 , 449678 , 519486 , 563854 , 501748 , 492002 , 513768 , 413826 , 677025 , 492267 , 625675 , 565067 );
Copy
4
2.63 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
123614
388032
389199
413826
422444
429223
437856
447524
449447
449678
472399
480766
492002
492267
501748
513768
519486
536100
556945
563325
563854
563871
565067
585109
597899
598814
610610
625675
636405
639210
662833
670074
676476
676944
676969
677025
681355
683588
684843
684845
684855
685982
699544
709228
719937
719946
719955
719960
720813
729937
732135
736070
740910
747153
748032
749468
751415
754205
755854
755975
771138
774121
774484
779302
802275
811441
812155
]
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 (123614 , 388032 , 389199 , 413826 , 422444 , 429223 , 437856 , 447524 , 449447 , 449678 , 472399 , 480766 , 492002 , 492267 , 501748 , 513768 , 519486 , 536100 , 556945 , 563325 , 563854 , 563871 , 565067 , 585109 , 597899 , 598814 , 610610 , 625675 , 636405 , 639210 , 662833 , 670074 , 676476 , 676944 , 676969 , 677025 , 681355 , 683588 , 684843 , 684845 , 684855 , 685982 , 699544 , 709228 , 719937 , 719946 , 719955 , 719960 , 720813 , 729937 , 732135 , 736070 , 740910 , 747153 , 748032 , 749468 , 751415 , 754205 , 755854 , 755975 , 771138 , 774121 , 774484 , 779302 , 802275 , 811441 , 812155 );
Copy
5
78.34 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
123614
388032
389199
413826
422444
429223
437856
447524
449447
449678
472399
480766
492002
492267
501748
513768
519486
536100
556945
563325
563854
563871
565067
585109
597899
598814
610610
625675
636405
639210
662833
670074
676476
676944
676969
677025
681355
683588
684843
684845
684855
685982
699544
709228
719937
719946
719955
719960
720813
729937
732135
736070
740910
747153
748032
749468
751415
754205
755854
755975
771138
774121
774484
779302
802275
811441
812155
]
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 (123614 , 388032 , 389199 , 413826 , 422444 , 429223 , 437856 , 447524 , 449447 , 449678 , 472399 , 480766 , 492002 , 492267 , 501748 , 513768 , 519486 , 536100 , 556945 , 563325 , 563854 , 563871 , 565067 , 585109 , 597899 , 598814 , 610610 , 625675 , 636405 , 639210 , 662833 , 670074 , 676476 , 676944 , 676969 , 677025 , 681355 , 683588 , 684843 , 684845 , 684855 , 685982 , 699544 , 709228 , 719937 , 719946 , 719955 , 719960 , 720813 , 729937 , 732135 , 736070 , 740910 , 747153 , 748032 , 749468 , 751415 , 754205 , 755854 , 755975 , 771138 , 774121 , 774484 , 779302 , 802275 , 811441 , 812155 );
Copy