3
14.27 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
535820
517821
815909
530465
536706
437835
816252
698976
428826
823097
713497
565142
401541
480244
522879
538865
519511
448719
416408
477114
821596
534991
519224
524314
525625
814835
818472
517180
518970
540282
541890
479856
491704
411838
453028
465385
532898
404330
526888
492977
516230
485061
534166
382313
440631
472312
443797
522907
510518
535736
497793
448687
451493
571241
788264
513471
522056
576711
601147
634212
470302
538234
524992
540483
482350
527908
541886
516938
542954
541888
543844
519345
509100
541588
434601
]
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 (535820 , 517821 , 815909 , 530465 , 536706 , 437835 , 816252 , 698976 , 428826 , 823097 , 713497 , 565142 , 401541 , 480244 , 522879 , 538865 , 519511 , 448719 , 416408 , 477114 , 821596 , 534991 , 519224 , 524314 , 525625 , 814835 , 818472 , 517180 , 518970 , 540282 , 541890 , 479856 , 491704 , 411838 , 453028 , 465385 , 532898 , 404330 , 526888 , 492977 , 516230 , 485061 , 534166 , 382313 , 440631 , 472312 , 443797 , 522907 , 510518 , 535736 , 497793 , 448687 , 451493 , 571241 , 788264 , 513471 , 522056 , 576711 , 601147 , 634212 , 470302 , 538234 , 524992 , 540483 , 482350 , 527908 , 541886 , 516938 , 542954 , 541888 , 543844 , 519345 , 509100 , 541588 , 434601 );
Copy
4
3.56 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
382313
401541
404330
411838
416408
428826
434601
437835
440631
443797
448687
448719
451493
453028
465385
470302
472312
477114
479856
480244
482350
485061
491704
492977
497793
509100
510518
513471
516230
516938
517180
517821
518970
519224
519345
519511
522056
522879
522907
524314
524992
525625
526888
527908
530465
532898
534166
534991
535736
535820
536706
538234
538865
540282
540483
541588
541886
541888
541890
542954
543844
565142
571241
576711
601147
634212
698976
713497
788264
814835
815909
816252
818472
821596
823097
]
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 (382313 , 401541 , 404330 , 411838 , 416408 , 428826 , 434601 , 437835 , 440631 , 443797 , 448687 , 448719 , 451493 , 453028 , 465385 , 470302 , 472312 , 477114 , 479856 , 480244 , 482350 , 485061 , 491704 , 492977 , 497793 , 509100 , 510518 , 513471 , 516230 , 516938 , 517180 , 517821 , 518970 , 519224 , 519345 , 519511 , 522056 , 522879 , 522907 , 524314 , 524992 , 525625 , 526888 , 527908 , 530465 , 532898 , 534166 , 534991 , 535736 , 535820 , 536706 , 538234 , 538865 , 540282 , 540483 , 541588 , 541886 , 541888 , 541890 , 542954 , 543844 , 565142 , 571241 , 576711 , 601147 , 634212 , 698976 , 713497 , 788264 , 814835 , 815909 , 816252 , 818472 , 821596 , 823097 );
Copy
5
101.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
382313
401541
404330
411838
416408
428826
434601
437835
440631
443797
448687
448719
451493
453028
465385
470302
472312
477114
479856
480244
482350
485061
491704
492977
497793
509100
510518
513471
516230
516938
517180
517821
518970
519224
519345
519511
522056
522879
522907
524314
524992
525625
526888
527908
530465
532898
534166
534991
535736
535820
536706
538234
538865
540282
540483
541588
541886
541888
541890
542954
543844
565142
571241
576711
601147
634212
698976
713497
788264
814835
815909
816252
818472
821596
823097
]
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 (382313 , 401541 , 404330 , 411838 , 416408 , 428826 , 434601 , 437835 , 440631 , 443797 , 448687 , 448719 , 451493 , 453028 , 465385 , 470302 , 472312 , 477114 , 479856 , 480244 , 482350 , 485061 , 491704 , 492977 , 497793 , 509100 , 510518 , 513471 , 516230 , 516938 , 517180 , 517821 , 518970 , 519224 , 519345 , 519511 , 522056 , 522879 , 522907 , 524314 , 524992 , 525625 , 526888 , 527908 , 530465 , 532898 , 534166 , 534991 , 535736 , 535820 , 536706 , 538234 , 538865 , 540282 , 540483 , 541588 , 541886 , 541888 , 541890 , 542954 , 543844 , 565142 , 571241 , 576711 , 601147 , 634212 , 698976 , 713497 , 788264 , 814835 , 815909 , 816252 , 818472 , 821596 , 823097 );
Copy