3
9.14 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
391133
394773
690326
533304
478963
693184
407324
407885
672579
21478
70659
821008
6919
808972
718366
401240
403965
97107
665916
413739
726809
761073
103696
517633
401842
413768
814429
25461
425046
445564
519553
473461
406698
517788
473184
399628
797546
445586
775186
187962
589484
798872
494333
454668
426616
487708
812939
443232
484086
452139
422673
445590
819144
487632
589591
527416
445543
408238
414131
401924
430700
413819
544663
452097
]
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 (391133 , 394773 , 690326 , 533304 , 478963 , 693184 , 407324 , 407885 , 672579 , 21478 , 70659 , 821008 , 6919 , 808972 , 718366 , 401240 , 403965 , 97107 , 665916 , 413739 , 726809 , 761073 , 103696 , 517633 , 401842 , 413768 , 814429 , 25461 , 425046 , 445564 , 519553 , 473461 , 406698 , 517788 , 473184 , 399628 , 797546 , 445586 , 775186 , 187962 , 589484 , 798872 , 494333 , 454668 , 426616 , 487708 , 812939 , 443232 , 484086 , 452139 , 422673 , 445590 , 819144 , 487632 , 589591 , 527416 , 445543 , 408238 , 414131 , 401924 , 430700 , 413819 , 544663 , 452097 );
Copy
4
2.39 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
6919
21478
25461
70659
97107
103696
187962
391133
394773
399628
401240
401842
401924
403965
406698
407324
407885
408238
413739
413768
413819
414131
422673
425046
426616
430700
443232
445543
445564
445586
445590
452097
452139
454668
473184
473461
478963
484086
487632
487708
494333
517633
517788
519553
527416
533304
544663
589484
589591
665916
672579
690326
693184
718366
726809
761073
775186
797546
798872
808972
812939
814429
819144
821008
]
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 (6919 , 21478 , 25461 , 70659 , 97107 , 103696 , 187962 , 391133 , 394773 , 399628 , 401240 , 401842 , 401924 , 403965 , 406698 , 407324 , 407885 , 408238 , 413739 , 413768 , 413819 , 414131 , 422673 , 425046 , 426616 , 430700 , 443232 , 445543 , 445564 , 445586 , 445590 , 452097 , 452139 , 454668 , 473184 , 473461 , 478963 , 484086 , 487632 , 487708 , 494333 , 517633 , 517788 , 519553 , 527416 , 533304 , 544663 , 589484 , 589591 , 665916 , 672579 , 690326 , 693184 , 718366 , 726809 , 761073 , 775186 , 797546 , 798872 , 808972 , 812939 , 814429 , 819144 , 821008 );
Copy
5
112.06 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
6919
21478
25461
70659
97107
103696
187962
391133
394773
399628
401240
401842
401924
403965
406698
407324
407885
408238
413739
413768
413819
414131
422673
425046
426616
430700
443232
445543
445564
445586
445590
452097
452139
454668
473184
473461
478963
484086
487632
487708
494333
517633
517788
519553
527416
533304
544663
589484
589591
665916
672579
690326
693184
718366
726809
761073
775186
797546
798872
808972
812939
814429
819144
821008
]
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 (6919 , 21478 , 25461 , 70659 , 97107 , 103696 , 187962 , 391133 , 394773 , 399628 , 401240 , 401842 , 401924 , 403965 , 406698 , 407324 , 407885 , 408238 , 413739 , 413768 , 413819 , 414131 , 422673 , 425046 , 426616 , 430700 , 443232 , 445543 , 445564 , 445586 , 445590 , 452097 , 452139 , 454668 , 473184 , 473461 , 478963 , 484086 , 487632 , 487708 , 494333 , 517633 , 517788 , 519553 , 527416 , 533304 , 544663 , 589484 , 589591 , 665916 , 672579 , 690326 , 693184 , 718366 , 726809 , 761073 , 775186 , 797546 , 798872 , 808972 , 812939 , 814429 , 819144 , 821008 );
Copy