3
10.44 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
813044
748446
767347
573978
560120
517423
790039
779447
663228
779916
756271
733548
787303
760461
793786
810120
593693
826538
804520
396627
579325
712231
651227
781970
742251
450821
802229
629000
776232
710626
766695
671553
759902
779359
492164
514370
446620
484753
546899
430285
470379
714895
650082
630673
489840
600387
755437
519465
740318
744853
493319
618852
409061
551931
566179
523758
562168
674360
467142
561040
395143
453297
522784
497313
438768
407067
599890
672710
]
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 (813044 , 748446 , 767347 , 573978 , 560120 , 517423 , 790039 , 779447 , 663228 , 779916 , 756271 , 733548 , 787303 , 760461 , 793786 , 810120 , 593693 , 826538 , 804520 , 396627 , 579325 , 712231 , 651227 , 781970 , 742251 , 450821 , 802229 , 629000 , 776232 , 710626 , 766695 , 671553 , 759902 , 779359 , 492164 , 514370 , 446620 , 484753 , 546899 , 430285 , 470379 , 714895 , 650082 , 630673 , 489840 , 600387 , 755437 , 519465 , 740318 , 744853 , 493319 , 618852 , 409061 , 551931 , 566179 , 523758 , 562168 , 674360 , 467142 , 561040 , 395143 , 453297 , 522784 , 497313 , 438768 , 407067 , 599890 , 672710 );
Copy
4
212.27 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
395143
396627
407067
409061
430285
438768
446620
450821
453297
467142
470379
484753
489840
492164
493319
497313
514370
517423
519465
522784
523758
546899
551931
560120
561040
562168
566179
573978
579325
593693
599890
600387
618852
629000
630673
650082
651227
663228
671553
672710
674360
710626
712231
714895
733548
740318
742251
744853
748446
755437
756271
759902
760461
766695
767347
776232
779359
779447
779916
781970
787303
790039
793786
802229
804520
810120
813044
826538
]
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 (395143 , 396627 , 407067 , 409061 , 430285 , 438768 , 446620 , 450821 , 453297 , 467142 , 470379 , 484753 , 489840 , 492164 , 493319 , 497313 , 514370 , 517423 , 519465 , 522784 , 523758 , 546899 , 551931 , 560120 , 561040 , 562168 , 566179 , 573978 , 579325 , 593693 , 599890 , 600387 , 618852 , 629000 , 630673 , 650082 , 651227 , 663228 , 671553 , 672710 , 674360 , 710626 , 712231 , 714895 , 733548 , 740318 , 742251 , 744853 , 748446 , 755437 , 756271 , 759902 , 760461 , 766695 , 767347 , 776232 , 779359 , 779447 , 779916 , 781970 , 787303 , 790039 , 793786 , 802229 , 804520 , 810120 , 813044 , 826538 );
Copy
5
131.87 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
395143
396627
407067
409061
430285
438768
446620
450821
453297
467142
470379
484753
489840
492164
493319
497313
514370
517423
519465
522784
523758
546899
551931
560120
561040
562168
566179
573978
579325
593693
599890
600387
618852
629000
630673
650082
651227
663228
671553
672710
674360
710626
712231
714895
733548
740318
742251
744853
748446
755437
756271
759902
760461
766695
767347
776232
779359
779447
779916
781970
787303
790039
793786
802229
804520
810120
813044
826538
]
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 (395143 , 396627 , 407067 , 409061 , 430285 , 438768 , 446620 , 450821 , 453297 , 467142 , 470379 , 484753 , 489840 , 492164 , 493319 , 497313 , 514370 , 517423 , 519465 , 522784 , 523758 , 546899 , 551931 , 560120 , 561040 , 562168 , 566179 , 573978 , 579325 , 593693 , 599890 , 600387 , 618852 , 629000 , 630673 , 650082 , 651227 , 663228 , 671553 , 672710 , 674360 , 710626 , 712231 , 714895 , 733548 , 740318 , 742251 , 744853 , 748446 , 755437 , 756271 , 759902 , 760461 , 766695 , 767347 , 776232 , 779359 , 779447 , 779916 , 781970 , 787303 , 790039 , 793786 , 802229 , 804520 , 810120 , 813044 , 826538 );
Copy