3
9.59 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
664538
568216
486859
707706
558414
489262
762245
589178
643284
414218
797069
382738
564760
496324
775377
665894
807758
724567
805265
810755
790973
707304
400984
742474
539588
814180
568479
597577
567544
795519
816822
599603
726063
523897
445101
715865
790975
546556
568202
784523
39719
397160
769726
771792
512062
716124
400746
411190
591321
737105
531181
506357
532991
527305
570837
607466
418951
725492
458673
542418
566557
385265
673143
607661
385875
532983
642657
556662
807914
486863
474909
486869
385809
675749
529958
]
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 (664538 , 568216 , 486859 , 707706 , 558414 , 489262 , 762245 , 589178 , 643284 , 414218 , 797069 , 382738 , 564760 , 496324 , 775377 , 665894 , 807758 , 724567 , 805265 , 810755 , 790973 , 707304 , 400984 , 742474 , 539588 , 814180 , 568479 , 597577 , 567544 , 795519 , 816822 , 599603 , 726063 , 523897 , 445101 , 715865 , 790975 , 546556 , 568202 , 784523 , 39719 , 397160 , 769726 , 771792 , 512062 , 716124 , 400746 , 411190 , 591321 , 737105 , 531181 , 506357 , 532991 , 527305 , 570837 , 607466 , 418951 , 725492 , 458673 , 542418 , 566557 , 385265 , 673143 , 607661 , 385875 , 532983 , 642657 , 556662 , 807914 , 486863 , 474909 , 486869 , 385809 , 675749 , 529958 );
Copy
4
1.98 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
39719
382738
385265
385809
385875
397160
400746
400984
411190
414218
418951
445101
458673
474909
486859
486863
486869
489262
496324
506357
512062
523897
527305
529958
531181
532983
532991
539588
542418
546556
556662
558414
564760
566557
567544
568202
568216
568479
570837
589178
591321
597577
599603
607466
607661
642657
643284
664538
665894
673143
675749
707304
707706
715865
716124
724567
725492
726063
737105
742474
762245
769726
771792
775377
784523
790973
790975
795519
797069
805265
807758
807914
810755
814180
816822
]
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 (39719 , 382738 , 385265 , 385809 , 385875 , 397160 , 400746 , 400984 , 411190 , 414218 , 418951 , 445101 , 458673 , 474909 , 486859 , 486863 , 486869 , 489262 , 496324 , 506357 , 512062 , 523897 , 527305 , 529958 , 531181 , 532983 , 532991 , 539588 , 542418 , 546556 , 556662 , 558414 , 564760 , 566557 , 567544 , 568202 , 568216 , 568479 , 570837 , 589178 , 591321 , 597577 , 599603 , 607466 , 607661 , 642657 , 643284 , 664538 , 665894 , 673143 , 675749 , 707304 , 707706 , 715865 , 716124 , 724567 , 725492 , 726063 , 737105 , 742474 , 762245 , 769726 , 771792 , 775377 , 784523 , 790973 , 790975 , 795519 , 797069 , 805265 , 807758 , 807914 , 810755 , 814180 , 816822 );
Copy
5
81.11 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
39719
382738
385265
385809
385875
397160
400746
400984
411190
414218
418951
445101
458673
474909
486859
486863
486869
489262
496324
506357
512062
523897
527305
529958
531181
532983
532991
539588
542418
546556
556662
558414
564760
566557
567544
568202
568216
568479
570837
589178
591321
597577
599603
607466
607661
642657
643284
664538
665894
673143
675749
707304
707706
715865
716124
724567
725492
726063
737105
742474
762245
769726
771792
775377
784523
790973
790975
795519
797069
805265
807758
807914
810755
814180
816822
]
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 (39719 , 382738 , 385265 , 385809 , 385875 , 397160 , 400746 , 400984 , 411190 , 414218 , 418951 , 445101 , 458673 , 474909 , 486859 , 486863 , 486869 , 489262 , 496324 , 506357 , 512062 , 523897 , 527305 , 529958 , 531181 , 532983 , 532991 , 539588 , 542418 , 546556 , 556662 , 558414 , 564760 , 566557 , 567544 , 568202 , 568216 , 568479 , 570837 , 589178 , 591321 , 597577 , 599603 , 607466 , 607661 , 642657 , 643284 , 664538 , 665894 , 673143 , 675749 , 707304 , 707706 , 715865 , 716124 , 724567 , 725492 , 726063 , 737105 , 742474 , 762245 , 769726 , 771792 , 775377 , 784523 , 790973 , 790975 , 795519 , 797069 , 805265 , 807758 , 807914 , 810755 , 814180 , 816822 );
Copy