3
8.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
472983
686908
589094
625593
640011
602726
530297
583509
604279
799330
567961
783886
810062
724141
799689
632476
625618
767596
724933
638906
758680
774234
613807
767918
784108
652857
486248
597932
575070
546686
447386
717636
557337
573491
512430
470110
640020
580292
698726
784817
581253
592997
383818
779955
390304
679297
552686
575777
597672
579141
612441
813484
478095
682945
588813
448001
672551
579140
601331
784112
479202
557679
496221
501120
516375
]
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 (472983 , 686908 , 589094 , 625593 , 640011 , 602726 , 530297 , 583509 , 604279 , 799330 , 567961 , 783886 , 810062 , 724141 , 799689 , 632476 , 625618 , 767596 , 724933 , 638906 , 758680 , 774234 , 613807 , 767918 , 784108 , 652857 , 486248 , 597932 , 575070 , 546686 , 447386 , 717636 , 557337 , 573491 , 512430 , 470110 , 640020 , 580292 , 698726 , 784817 , 581253 , 592997 , 383818 , 779955 , 390304 , 679297 , 552686 , 575777 , 597672 , 579141 , 612441 , 813484 , 478095 , 682945 , 588813 , 448001 , 672551 , 579140 , 601331 , 784112 , 479202 , 557679 , 496221 , 501120 , 516375 );
Copy
4
2.14 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
383818
390304
447386
448001
470110
472983
478095
479202
486248
496221
501120
512430
516375
530297
546686
552686
557337
557679
567961
573491
575070
575777
579140
579141
580292
581253
583509
588813
589094
592997
597672
597932
601331
602726
604279
612441
613807
625593
625618
632476
638906
640011
640020
652857
672551
679297
682945
686908
698726
717636
724141
724933
758680
767596
767918
774234
779955
783886
784108
784112
784817
799330
799689
810062
813484
]
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 (383818 , 390304 , 447386 , 448001 , 470110 , 472983 , 478095 , 479202 , 486248 , 496221 , 501120 , 512430 , 516375 , 530297 , 546686 , 552686 , 557337 , 557679 , 567961 , 573491 , 575070 , 575777 , 579140 , 579141 , 580292 , 581253 , 583509 , 588813 , 589094 , 592997 , 597672 , 597932 , 601331 , 602726 , 604279 , 612441 , 613807 , 625593 , 625618 , 632476 , 638906 , 640011 , 640020 , 652857 , 672551 , 679297 , 682945 , 686908 , 698726 , 717636 , 724141 , 724933 , 758680 , 767596 , 767918 , 774234 , 779955 , 783886 , 784108 , 784112 , 784817 , 799330 , 799689 , 810062 , 813484 );
Copy
5
66.51 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
383818
390304
447386
448001
470110
472983
478095
479202
486248
496221
501120
512430
516375
530297
546686
552686
557337
557679
567961
573491
575070
575777
579140
579141
580292
581253
583509
588813
589094
592997
597672
597932
601331
602726
604279
612441
613807
625593
625618
632476
638906
640011
640020
652857
672551
679297
682945
686908
698726
717636
724141
724933
758680
767596
767918
774234
779955
783886
784108
784112
784817
799330
799689
810062
813484
]
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 (383818 , 390304 , 447386 , 448001 , 470110 , 472983 , 478095 , 479202 , 486248 , 496221 , 501120 , 512430 , 516375 , 530297 , 546686 , 552686 , 557337 , 557679 , 567961 , 573491 , 575070 , 575777 , 579140 , 579141 , 580292 , 581253 , 583509 , 588813 , 589094 , 592997 , 597672 , 597932 , 601331 , 602726 , 604279 , 612441 , 613807 , 625593 , 625618 , 632476 , 638906 , 640011 , 640020 , 652857 , 672551 , 679297 , 682945 , 686908 , 698726 , 717636 , 724141 , 724933 , 758680 , 767596 , 767918 , 774234 , 779955 , 783886 , 784108 , 784112 , 784817 , 799330 , 799689 , 810062 , 813484 );
Copy