3
10.97 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
824025
811708
508258
519099
675686
675689
582314
633119
785179
675687
675053
619397
773608
675429
675431
497507
675675
675104
675723
408692
519095
675430
675657
619802
675435
571199
476409
819605
675716
796990
823927
541052
802105
124494
403150
591667
675093
675127
626338
512868
544490
675123
670643
824265
697688
605583
358507
493543
732248
741896
726455
473206
675136
675441
675654
675691
632607
675107
675660
675703
602409
675696
675725
]
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 (824025 , 811708 , 508258 , 519099 , 675686 , 675689 , 582314 , 633119 , 785179 , 675687 , 675053 , 619397 , 773608 , 675429 , 675431 , 497507 , 675675 , 675104 , 675723 , 408692 , 519095 , 675430 , 675657 , 619802 , 675435 , 571199 , 476409 , 819605 , 675716 , 796990 , 823927 , 541052 , 802105 , 124494 , 403150 , 591667 , 675093 , 675127 , 626338 , 512868 , 544490 , 675123 , 670643 , 824265 , 697688 , 605583 , 358507 , 493543 , 732248 , 741896 , 726455 , 473206 , 675136 , 675441 , 675654 , 675691 , 632607 , 675107 , 675660 , 675703 , 602409 , 675696 , 675725 );
Copy
4
2.68 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
124494
358507
403150
408692
473206
476409
493543
497507
508258
512868
519095
519099
541052
544490
571199
582314
591667
602409
605583
619397
619802
626338
632607
633119
670643
675053
675093
675104
675107
675123
675127
675136
675429
675430
675431
675435
675441
675654
675657
675660
675675
675686
675687
675689
675691
675696
675703
675716
675723
675725
697688
726455
732248
741896
773608
785179
796990
802105
811708
819605
823927
824025
824265
]
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 (124494 , 358507 , 403150 , 408692 , 473206 , 476409 , 493543 , 497507 , 508258 , 512868 , 519095 , 519099 , 541052 , 544490 , 571199 , 582314 , 591667 , 602409 , 605583 , 619397 , 619802 , 626338 , 632607 , 633119 , 670643 , 675053 , 675093 , 675104 , 675107 , 675123 , 675127 , 675136 , 675429 , 675430 , 675431 , 675435 , 675441 , 675654 , 675657 , 675660 , 675675 , 675686 , 675687 , 675689 , 675691 , 675696 , 675703 , 675716 , 675723 , 675725 , 697688 , 726455 , 732248 , 741896 , 773608 , 785179 , 796990 , 802105 , 811708 , 819605 , 823927 , 824025 , 824265 );
Copy
5
91.01 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
124494
358507
403150
408692
473206
476409
493543
497507
508258
512868
519095
519099
541052
544490
571199
582314
591667
602409
605583
619397
619802
626338
632607
633119
670643
675053
675093
675104
675107
675123
675127
675136
675429
675430
675431
675435
675441
675654
675657
675660
675675
675686
675687
675689
675691
675696
675703
675716
675723
675725
697688
726455
732248
741896
773608
785179
796990
802105
811708
819605
823927
824025
824265
]
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 (124494 , 358507 , 403150 , 408692 , 473206 , 476409 , 493543 , 497507 , 508258 , 512868 , 519095 , 519099 , 541052 , 544490 , 571199 , 582314 , 591667 , 602409 , 605583 , 619397 , 619802 , 626338 , 632607 , 633119 , 670643 , 675053 , 675093 , 675104 , 675107 , 675123 , 675127 , 675136 , 675429 , 675430 , 675431 , 675435 , 675441 , 675654 , 675657 , 675660 , 675675 , 675686 , 675687 , 675689 , 675691 , 675696 , 675703 , 675716 , 675723 , 675725 , 697688 , 726455 , 732248 , 741896 , 773608 , 785179 , 796990 , 802105 , 811708 , 819605 , 823927 , 824025 , 824265 );
Copy