3
12.12 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
473094
529564
450966
521794
636053
451410
382491
547889
425773
492994
593193
463873
478025
589107
428616
577391
601226
554791
575645
680182
600123
634187
422834
422584
556485
564001
668137
445022
552403
600962
456482
588818
461745
492575
594422
522604
536546
500600
640732
464185
648560
530494
451620
447452
618525
533538
536616
474772
586938
536586
469763
584873
464168
689006
511622
647333
545393
519842
601537
543772
461303
513207
]
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 (473094 , 529564 , 450966 , 521794 , 636053 , 451410 , 382491 , 547889 , 425773 , 492994 , 593193 , 463873 , 478025 , 589107 , 428616 , 577391 , 601226 , 554791 , 575645 , 680182 , 600123 , 634187 , 422834 , 422584 , 556485 , 564001 , 668137 , 445022 , 552403 , 600962 , 456482 , 588818 , 461745 , 492575 , 594422 , 522604 , 536546 , 500600 , 640732 , 464185 , 648560 , 530494 , 451620 , 447452 , 618525 , 533538 , 536616 , 474772 , 586938 , 536586 , 469763 , 584873 , 464168 , 689006 , 511622 , 647333 , 545393 , 519842 , 601537 , 543772 , 461303 , 513207 );
Copy
4
2.71 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
382491
422584
422834
425773
428616
445022
447452
450966
451410
451620
456482
461303
461745
463873
464168
464185
469763
473094
474772
478025
492575
492994
500600
511622
513207
519842
521794
522604
529564
530494
533538
536546
536586
536616
543772
545393
547889
552403
554791
556485
564001
575645
577391
584873
586938
588818
589107
593193
594422
600123
600962
601226
601537
618525
634187
636053
640732
647333
648560
668137
680182
689006
]
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 (382491 , 422584 , 422834 , 425773 , 428616 , 445022 , 447452 , 450966 , 451410 , 451620 , 456482 , 461303 , 461745 , 463873 , 464168 , 464185 , 469763 , 473094 , 474772 , 478025 , 492575 , 492994 , 500600 , 511622 , 513207 , 519842 , 521794 , 522604 , 529564 , 530494 , 533538 , 536546 , 536586 , 536616 , 543772 , 545393 , 547889 , 552403 , 554791 , 556485 , 564001 , 575645 , 577391 , 584873 , 586938 , 588818 , 589107 , 593193 , 594422 , 600123 , 600962 , 601226 , 601537 , 618525 , 634187 , 636053 , 640732 , 647333 , 648560 , 668137 , 680182 , 689006 );
Copy
5
107.20 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
382491
422584
422834
425773
428616
445022
447452
450966
451410
451620
456482
461303
461745
463873
464168
464185
469763
473094
474772
478025
492575
492994
500600
511622
513207
519842
521794
522604
529564
530494
533538
536546
536586
536616
543772
545393
547889
552403
554791
556485
564001
575645
577391
584873
586938
588818
589107
593193
594422
600123
600962
601226
601537
618525
634187
636053
640732
647333
648560
668137
680182
689006
]
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 (382491 , 422584 , 422834 , 425773 , 428616 , 445022 , 447452 , 450966 , 451410 , 451620 , 456482 , 461303 , 461745 , 463873 , 464168 , 464185 , 469763 , 473094 , 474772 , 478025 , 492575 , 492994 , 500600 , 511622 , 513207 , 519842 , 521794 , 522604 , 529564 , 530494 , 533538 , 536546 , 536586 , 536616 , 543772 , 545393 , 547889 , 552403 , 554791 , 556485 , 564001 , 575645 , 577391 , 584873 , 586938 , 588818 , 589107 , 593193 , 594422 , 600123 , 600962 , 601226 , 601537 , 618525 , 634187 , 636053 , 640732 , 647333 , 648560 , 668137 , 680182 , 689006 );
Copy