3
10.79 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
629172
639555
402206
717722
395839
569093
414783
516692
699624
398269
703713
731825
594531
722624
685051
619168
583679
548619
413695
458612
448554
497563
709588
439852
404753
393659
395756
731869
122925
399088
562223
569140
396744
454837
473986
494075
497590
578376
403249
497338
497554
459482
448519
497580
454842
428631
439844
573261
396035
578374
556051
474013
405709
540910
586024
395648
661510
475971
468010
439845
521866
598745
526199
562258
]
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 (629172 , 639555 , 402206 , 717722 , 395839 , 569093 , 414783 , 516692 , 699624 , 398269 , 703713 , 731825 , 594531 , 722624 , 685051 , 619168 , 583679 , 548619 , 413695 , 458612 , 448554 , 497563 , 709588 , 439852 , 404753 , 393659 , 395756 , 731869 , 122925 , 399088 , 562223 , 569140 , 396744 , 454837 , 473986 , 494075 , 497590 , 578376 , 403249 , 497338 , 497554 , 459482 , 448519 , 497580 , 454842 , 428631 , 439844 , 573261 , 396035 , 578374 , 556051 , 474013 , 405709 , 540910 , 586024 , 395648 , 661510 , 475971 , 468010 , 439845 , 521866 , 598745 , 526199 , 562258 );
Copy
4
2.35 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
122925
393659
395648
395756
395839
396035
396744
398269
399088
402206
403249
404753
405709
413695
414783
428631
439844
439845
439852
448519
448554
454837
454842
458612
459482
468010
473986
474013
475971
494075
497338
497554
497563
497580
497590
516692
521866
526199
540910
548619
556051
562223
562258
569093
569140
573261
578374
578376
583679
586024
594531
598745
619168
629172
639555
661510
685051
699624
703713
709588
717722
722624
731825
731869
]
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 (122925 , 393659 , 395648 , 395756 , 395839 , 396035 , 396744 , 398269 , 399088 , 402206 , 403249 , 404753 , 405709 , 413695 , 414783 , 428631 , 439844 , 439845 , 439852 , 448519 , 448554 , 454837 , 454842 , 458612 , 459482 , 468010 , 473986 , 474013 , 475971 , 494075 , 497338 , 497554 , 497563 , 497580 , 497590 , 516692 , 521866 , 526199 , 540910 , 548619 , 556051 , 562223 , 562258 , 569093 , 569140 , 573261 , 578374 , 578376 , 583679 , 586024 , 594531 , 598745 , 619168 , 629172 , 639555 , 661510 , 685051 , 699624 , 703713 , 709588 , 717722 , 722624 , 731825 , 731869 );
Copy
5
75.24 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
122925
393659
395648
395756
395839
396035
396744
398269
399088
402206
403249
404753
405709
413695
414783
428631
439844
439845
439852
448519
448554
454837
454842
458612
459482
468010
473986
474013
475971
494075
497338
497554
497563
497580
497590
516692
521866
526199
540910
548619
556051
562223
562258
569093
569140
573261
578374
578376
583679
586024
594531
598745
619168
629172
639555
661510
685051
699624
703713
709588
717722
722624
731825
731869
]
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 (122925 , 393659 , 395648 , 395756 , 395839 , 396035 , 396744 , 398269 , 399088 , 402206 , 403249 , 404753 , 405709 , 413695 , 414783 , 428631 , 439844 , 439845 , 439852 , 448519 , 448554 , 454837 , 454842 , 458612 , 459482 , 468010 , 473986 , 474013 , 475971 , 494075 , 497338 , 497554 , 497563 , 497580 , 497590 , 516692 , 521866 , 526199 , 540910 , 548619 , 556051 , 562223 , 562258 , 569093 , 569140 , 573261 , 578374 , 578376 , 583679 , 586024 , 594531 , 598745 , 619168 , 629172 , 639555 , 661510 , 685051 , 699624 , 703713 , 709588 , 717722 , 722624 , 731825 , 731869 );
Copy