3
12.02 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
604261
642060
648859
706058
812552
646029
700990
637021
631162
632671
645276
648809
642018
642066
633451
632678
637043
645284
642032
639716
642660
539203
644250
639719
382446
641698
632635
723618
623196
545454
462922
448464
637001
647836
599872
542583
642700
537654
634546
647993
634139
647936
615716
537890
536676
537584
696582
633123
628383
644916
540559
595471
459362
650174
545611
647972
550128
498297
634780
695127
537203
633796
428761
598105
473418
]
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 (604261 , 642060 , 648859 , 706058 , 812552 , 646029 , 700990 , 637021 , 631162 , 632671 , 645276 , 648809 , 642018 , 642066 , 633451 , 632678 , 637043 , 645284 , 642032 , 639716 , 642660 , 539203 , 644250 , 639719 , 382446 , 641698 , 632635 , 723618 , 623196 , 545454 , 462922 , 448464 , 637001 , 647836 , 599872 , 542583 , 642700 , 537654 , 634546 , 647993 , 634139 , 647936 , 615716 , 537890 , 536676 , 537584 , 696582 , 633123 , 628383 , 644916 , 540559 , 595471 , 459362 , 650174 , 545611 , 647972 , 550128 , 498297 , 634780 , 695127 , 537203 , 633796 , 428761 , 598105 , 473418 );
Copy
4
2.30 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
382446
428761
448464
459362
462922
473418
498297
536676
537203
537584
537654
537890
539203
540559
542583
545454
545611
550128
595471
598105
599872
604261
615716
623196
628383
631162
632635
632671
632678
633123
633451
633796
634139
634546
634780
637001
637021
637043
639716
639719
641698
642018
642032
642060
642066
642660
642700
644250
644916
645276
645284
646029
647836
647936
647972
647993
648809
648859
650174
695127
696582
700990
706058
723618
812552
]
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 (382446 , 428761 , 448464 , 459362 , 462922 , 473418 , 498297 , 536676 , 537203 , 537584 , 537654 , 537890 , 539203 , 540559 , 542583 , 545454 , 545611 , 550128 , 595471 , 598105 , 599872 , 604261 , 615716 , 623196 , 628383 , 631162 , 632635 , 632671 , 632678 , 633123 , 633451 , 633796 , 634139 , 634546 , 634780 , 637001 , 637021 , 637043 , 639716 , 639719 , 641698 , 642018 , 642032 , 642060 , 642066 , 642660 , 642700 , 644250 , 644916 , 645276 , 645284 , 646029 , 647836 , 647936 , 647972 , 647993 , 648809 , 648859 , 650174 , 695127 , 696582 , 700990 , 706058 , 723618 , 812552 );
Copy
5
80.70 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
382446
428761
448464
459362
462922
473418
498297
536676
537203
537584
537654
537890
539203
540559
542583
545454
545611
550128
595471
598105
599872
604261
615716
623196
628383
631162
632635
632671
632678
633123
633451
633796
634139
634546
634780
637001
637021
637043
639716
639719
641698
642018
642032
642060
642066
642660
642700
644250
644916
645276
645284
646029
647836
647936
647972
647993
648809
648859
650174
695127
696582
700990
706058
723618
812552
]
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 (382446 , 428761 , 448464 , 459362 , 462922 , 473418 , 498297 , 536676 , 537203 , 537584 , 537654 , 537890 , 539203 , 540559 , 542583 , 545454 , 545611 , 550128 , 595471 , 598105 , 599872 , 604261 , 615716 , 623196 , 628383 , 631162 , 632635 , 632671 , 632678 , 633123 , 633451 , 633796 , 634139 , 634546 , 634780 , 637001 , 637021 , 637043 , 639716 , 639719 , 641698 , 642018 , 642032 , 642060 , 642066 , 642660 , 642700 , 644250 , 644916 , 645276 , 645284 , 646029 , 647836 , 647936 , 647972 , 647993 , 648809 , 648859 , 650174 , 695127 , 696582 , 700990 , 706058 , 723618 , 812552 );
Copy