3
9.32 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
823737
815902
823037
564330
572745
710881
776729
724188
758896
529680
725301
601629
677862
587314
601615
764044
753633
683066
761696
800529
768880
444471
824501
531216
810975
784981
753963
644448
711417
415637
471707
490813
457990
533200
535533
565973
555065
591958
589607
591160
801953
777003
455978
468829
531197
590712
796642
524944
520249
450829
474153
516924
472544
573273
551125
584711
512613
527382
521091
540952
595226
499726
512733
528157
526545
488132
499731
567757
504693
]
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 (823737 , 815902 , 823037 , 564330 , 572745 , 710881 , 776729 , 724188 , 758896 , 529680 , 725301 , 601629 , 677862 , 587314 , 601615 , 764044 , 753633 , 683066 , 761696 , 800529 , 768880 , 444471 , 824501 , 531216 , 810975 , 784981 , 753963 , 644448 , 711417 , 415637 , 471707 , 490813 , 457990 , 533200 , 535533 , 565973 , 555065 , 591958 , 589607 , 591160 , 801953 , 777003 , 455978 , 468829 , 531197 , 590712 , 796642 , 524944 , 520249 , 450829 , 474153 , 516924 , 472544 , 573273 , 551125 , 584711 , 512613 , 527382 , 521091 , 540952 , 595226 , 499726 , 512733 , 528157 , 526545 , 488132 , 499731 , 567757 , 504693 );
Copy
4
2.21 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
415637
444471
450829
455978
457990
468829
471707
472544
474153
488132
490813
499726
499731
504693
512613
512733
516924
520249
521091
524944
526545
527382
528157
529680
531197
531216
533200
535533
540952
551125
555065
564330
565973
567757
572745
573273
584711
587314
589607
590712
591160
591958
595226
601615
601629
644448
677862
683066
710881
711417
724188
725301
753633
753963
758896
761696
764044
768880
776729
777003
784981
800529
801953
810975
815902
823037
823737
824501
]
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 (415637 , 444471 , 450829 , 455978 , 457990 , 468829 , 471707 , 472544 , 474153 , 488132 , 490813 , 499726 , 499731 , 504693 , 512613 , 512733 , 516924 , 520249 , 521091 , 524944 , 526545 , 527382 , 528157 , 529680 , 531197 , 531216 , 533200 , 535533 , 540952 , 551125 , 555065 , 564330 , 565973 , 567757 , 572745 , 573273 , 584711 , 587314 , 589607 , 590712 , 591160 , 591958 , 595226 , 601615 , 601629 , 644448 , 677862 , 683066 , 710881 , 711417 , 724188 , 725301 , 753633 , 753963 , 758896 , 761696 , 764044 , 768880 , 776729 , 777003 , 784981 , 800529 , 801953 , 810975 , 815902 , 823037 , 823737 , 824501 );
Copy
5
109.45 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
415637
444471
450829
455978
457990
468829
471707
472544
474153
488132
490813
499726
499731
504693
512613
512733
516924
520249
521091
524944
526545
527382
528157
529680
531197
531216
533200
535533
540952
551125
555065
564330
565973
567757
572745
573273
584711
587314
589607
590712
591160
591958
595226
601615
601629
644448
677862
683066
710881
711417
724188
725301
753633
753963
758896
761696
764044
768880
776729
777003
784981
800529
801953
810975
815902
823037
823737
824501
]
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 (415637 , 444471 , 450829 , 455978 , 457990 , 468829 , 471707 , 472544 , 474153 , 488132 , 490813 , 499726 , 499731 , 504693 , 512613 , 512733 , 516924 , 520249 , 521091 , 524944 , 526545 , 527382 , 528157 , 529680 , 531197 , 531216 , 533200 , 535533 , 540952 , 551125 , 555065 , 564330 , 565973 , 567757 , 572745 , 573273 , 584711 , 587314 , 589607 , 590712 , 591160 , 591958 , 595226 , 601615 , 601629 , 644448 , 677862 , 683066 , 710881 , 711417 , 724188 , 725301 , 753633 , 753963 , 758896 , 761696 , 764044 , 768880 , 776729 , 777003 , 784981 , 800529 , 801953 , 810975 , 815902 , 823037 , 823737 , 824501 );
Copy