3
10.35 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
794189
524870
542655
596337
766880
617618
637747
386448
387545
680816
805707
542654
469613
416611
423434
423435
579651
500928
457975
455914
485471
513737
602300
573891
421072
524863
465548
482825
575850
575852
634327
565280
463084
453039
536869
524400
633987
457974
501440
519209
463091
459237
461673
503353
581083
458916
415961
590174
420356
500940
486058
536872
554445
530110
518766
465103
519392
486268
571999
500931
447560
529405
463087
752700
571303
565281
413944
573953
485147
554519
477097
434001
]
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 (794189 , 524870 , 542655 , 596337 , 766880 , 617618 , 637747 , 386448 , 387545 , 680816 , 805707 , 542654 , 469613 , 416611 , 423434 , 423435 , 579651 , 500928 , 457975 , 455914 , 485471 , 513737 , 602300 , 573891 , 421072 , 524863 , 465548 , 482825 , 575850 , 575852 , 634327 , 565280 , 463084 , 453039 , 536869 , 524400 , 633987 , 457974 , 501440 , 519209 , 463091 , 459237 , 461673 , 503353 , 581083 , 458916 , 415961 , 590174 , 420356 , 500940 , 486058 , 536872 , 554445 , 530110 , 518766 , 465103 , 519392 , 486268 , 571999 , 500931 , 447560 , 529405 , 463087 , 752700 , 571303 , 565281 , 413944 , 573953 , 485147 , 554519 , 477097 , 434001 );
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
386448
387545
413944
415961
416611
420356
421072
423434
423435
434001
447560
453039
455914
457974
457975
458916
459237
461673
463084
463087
463091
465103
465548
469613
477097
482825
485147
485471
486058
486268
500928
500931
500940
501440
503353
513737
518766
519209
519392
524400
524863
524870
529405
530110
536869
536872
542654
542655
554445
554519
565280
565281
571303
571999
573891
573953
575850
575852
579651
581083
590174
596337
602300
617618
633987
634327
637747
680816
752700
766880
794189
805707
]
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 (386448 , 387545 , 413944 , 415961 , 416611 , 420356 , 421072 , 423434 , 423435 , 434001 , 447560 , 453039 , 455914 , 457974 , 457975 , 458916 , 459237 , 461673 , 463084 , 463087 , 463091 , 465103 , 465548 , 469613 , 477097 , 482825 , 485147 , 485471 , 486058 , 486268 , 500928 , 500931 , 500940 , 501440 , 503353 , 513737 , 518766 , 519209 , 519392 , 524400 , 524863 , 524870 , 529405 , 530110 , 536869 , 536872 , 542654 , 542655 , 554445 , 554519 , 565280 , 565281 , 571303 , 571999 , 573891 , 573953 , 575850 , 575852 , 579651 , 581083 , 590174 , 596337 , 602300 , 617618 , 633987 , 634327 , 637747 , 680816 , 752700 , 766880 , 794189 , 805707 );
Copy
5
89.94 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
386448
387545
413944
415961
416611
420356
421072
423434
423435
434001
447560
453039
455914
457974
457975
458916
459237
461673
463084
463087
463091
465103
465548
469613
477097
482825
485147
485471
486058
486268
500928
500931
500940
501440
503353
513737
518766
519209
519392
524400
524863
524870
529405
530110
536869
536872
542654
542655
554445
554519
565280
565281
571303
571999
573891
573953
575850
575852
579651
581083
590174
596337
602300
617618
633987
634327
637747
680816
752700
766880
794189
805707
]
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 (386448 , 387545 , 413944 , 415961 , 416611 , 420356 , 421072 , 423434 , 423435 , 434001 , 447560 , 453039 , 455914 , 457974 , 457975 , 458916 , 459237 , 461673 , 463084 , 463087 , 463091 , 465103 , 465548 , 469613 , 477097 , 482825 , 485147 , 485471 , 486058 , 486268 , 500928 , 500931 , 500940 , 501440 , 503353 , 513737 , 518766 , 519209 , 519392 , 524400 , 524863 , 524870 , 529405 , 530110 , 536869 , 536872 , 542654 , 542655 , 554445 , 554519 , 565280 , 565281 , 571303 , 571999 , 573891 , 573953 , 575850 , 575852 , 579651 , 581083 , 590174 , 596337 , 602300 , 617618 , 633987 , 634327 , 637747 , 680816 , 752700 , 766880 , 794189 , 805707 );
Copy