3
11.69 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
717428
718457
708176
606946
759443
810304
591943
824803
825885
646114
801844
824536
553406
648917
585785
601189
719901
654286
605226
608706
643338
625552
728896
749638
738888
745223
630668
736945
767868
732623
821868
583935
712241
642572
631762
787380
653698
695151
653801
553866
605626
773125
798135
785686
654294
653795
554748
592089
798229
733153
766754
632515
798137
798800
645201
783109
813018
785657
656815
613599
604702
635422
633972
578812
605703
809514
632724
604191
593872
543381
654273
543392
]
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 (717428 , 718457 , 708176 , 606946 , 759443 , 810304 , 591943 , 824803 , 825885 , 646114 , 801844 , 824536 , 553406 , 648917 , 585785 , 601189 , 719901 , 654286 , 605226 , 608706 , 643338 , 625552 , 728896 , 749638 , 738888 , 745223 , 630668 , 736945 , 767868 , 732623 , 821868 , 583935 , 712241 , 642572 , 631762 , 787380 , 653698 , 695151 , 653801 , 553866 , 605626 , 773125 , 798135 , 785686 , 654294 , 653795 , 554748 , 592089 , 798229 , 733153 , 766754 , 632515 , 798137 , 798800 , 645201 , 783109 , 813018 , 785657 , 656815 , 613599 , 604702 , 635422 , 633972 , 578812 , 605703 , 809514 , 632724 , 604191 , 593872 , 543381 , 654273 , 543392 );
Copy
4
2.93 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
543381
543392
553406
553866
554748
578812
583935
585785
591943
592089
593872
601189
604191
604702
605226
605626
605703
606946
608706
613599
625552
630668
631762
632515
632724
633972
635422
642572
643338
645201
646114
648917
653698
653795
653801
654273
654286
654294
656815
695151
708176
712241
717428
718457
719901
728896
732623
733153
736945
738888
745223
749638
759443
766754
767868
773125
783109
785657
785686
787380
798135
798137
798229
798800
801844
809514
810304
813018
821868
824536
824803
825885
]
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 (543381 , 543392 , 553406 , 553866 , 554748 , 578812 , 583935 , 585785 , 591943 , 592089 , 593872 , 601189 , 604191 , 604702 , 605226 , 605626 , 605703 , 606946 , 608706 , 613599 , 625552 , 630668 , 631762 , 632515 , 632724 , 633972 , 635422 , 642572 , 643338 , 645201 , 646114 , 648917 , 653698 , 653795 , 653801 , 654273 , 654286 , 654294 , 656815 , 695151 , 708176 , 712241 , 717428 , 718457 , 719901 , 728896 , 732623 , 733153 , 736945 , 738888 , 745223 , 749638 , 759443 , 766754 , 767868 , 773125 , 783109 , 785657 , 785686 , 787380 , 798135 , 798137 , 798229 , 798800 , 801844 , 809514 , 810304 , 813018 , 821868 , 824536 , 824803 , 825885 );
Copy
5
81.44 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
543381
543392
553406
553866
554748
578812
583935
585785
591943
592089
593872
601189
604191
604702
605226
605626
605703
606946
608706
613599
625552
630668
631762
632515
632724
633972
635422
642572
643338
645201
646114
648917
653698
653795
653801
654273
654286
654294
656815
695151
708176
712241
717428
718457
719901
728896
732623
733153
736945
738888
745223
749638
759443
766754
767868
773125
783109
785657
785686
787380
798135
798137
798229
798800
801844
809514
810304
813018
821868
824536
824803
825885
]
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 (543381 , 543392 , 553406 , 553866 , 554748 , 578812 , 583935 , 585785 , 591943 , 592089 , 593872 , 601189 , 604191 , 604702 , 605226 , 605626 , 605703 , 606946 , 608706 , 613599 , 625552 , 630668 , 631762 , 632515 , 632724 , 633972 , 635422 , 642572 , 643338 , 645201 , 646114 , 648917 , 653698 , 653795 , 653801 , 654273 , 654286 , 654294 , 656815 , 695151 , 708176 , 712241 , 717428 , 718457 , 719901 , 728896 , 732623 , 733153 , 736945 , 738888 , 745223 , 749638 , 759443 , 766754 , 767868 , 773125 , 783109 , 785657 , 785686 , 787380 , 798135 , 798137 , 798229 , 798800 , 801844 , 809514 , 810304 , 813018 , 821868 , 824536 , 824803 , 825885 );
Copy