3
12.61 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
474792
520916
454141
558117
536944
397903
421861
764584
731666
727330
793997
725579
422280
486820
512485
621979
623216
443182
772763
474783
439743
415814
424124
543708
532498
474782
421862
421914
439809
443722
523902
16851
439763
474777
523907
518160
732905
421840
421875
422152
439685
443801
421825
516483
421900
474776
422159
400494
421831
439770
433371
519512
439764
718798
786552
750701
421922
421878
422151
523840
623089
470302
422155
433323
526951
621764
]
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 (474792 , 520916 , 454141 , 558117 , 536944 , 397903 , 421861 , 764584 , 731666 , 727330 , 793997 , 725579 , 422280 , 486820 , 512485 , 621979 , 623216 , 443182 , 772763 , 474783 , 439743 , 415814 , 424124 , 543708 , 532498 , 474782 , 421862 , 421914 , 439809 , 443722 , 523902 , 16851 , 439763 , 474777 , 523907 , 518160 , 732905 , 421840 , 421875 , 422152 , 439685 , 443801 , 421825 , 516483 , 421900 , 474776 , 422159 , 400494 , 421831 , 439770 , 433371 , 519512 , 439764 , 718798 , 786552 , 750701 , 421922 , 421878 , 422151 , 523840 , 623089 , 470302 , 422155 , 433323 , 526951 , 621764 );
Copy
4
2.86 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
16851
397903
400494
415814
421825
421831
421840
421861
421862
421875
421878
421900
421914
421922
422151
422152
422155
422159
422280
424124
433323
433371
439685
439743
439763
439764
439770
439809
443182
443722
443801
454141
470302
474776
474777
474782
474783
474792
486820
512485
516483
518160
519512
520916
523840
523902
523907
526951
532498
536944
543708
558117
621764
621979
623089
623216
718798
725579
727330
732905
750701
772763
786552
793997
]
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 (16851 , 397903 , 400494 , 415814 , 421825 , 421831 , 421840 , 421861 , 421862 , 421875 , 421878 , 421900 , 421914 , 421922 , 422151 , 422152 , 422155 , 422159 , 422280 , 424124 , 433323 , 433371 , 439685 , 439743 , 439763 , 439764 , 439770 , 439809 , 443182 , 443722 , 443801 , 454141 , 470302 , 474776 , 474777 , 474782 , 474783 , 474792 , 486820 , 512485 , 516483 , 518160 , 519512 , 520916 , 523840 , 523902 , 523907 , 526951 , 532498 , 536944 , 543708 , 558117 , 621764 , 621979 , 623089 , 623216 , 718798 , 725579 , 727330 , 732905 , 750701 , 772763 , 786552 , 793997 );
Copy
5
79.52 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
16851
397903
400494
415814
421825
421831
421840
421861
421862
421875
421878
421900
421914
421922
422151
422152
422155
422159
422280
424124
433323
433371
439685
439743
439763
439764
439770
439809
443182
443722
443801
454141
470302
474776
474777
474782
474783
474792
486820
512485
516483
518160
519512
520916
523840
523902
523907
526951
532498
536944
543708
558117
621764
621979
623089
623216
718798
725579
727330
732905
750701
772763
786552
793997
]
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 (16851 , 397903 , 400494 , 415814 , 421825 , 421831 , 421840 , 421861 , 421862 , 421875 , 421878 , 421900 , 421914 , 421922 , 422151 , 422152 , 422155 , 422159 , 422280 , 424124 , 433323 , 433371 , 439685 , 439743 , 439763 , 439764 , 439770 , 439809 , 443182 , 443722 , 443801 , 454141 , 470302 , 474776 , 474777 , 474782 , 474783 , 474792 , 486820 , 512485 , 516483 , 518160 , 519512 , 520916 , 523840 , 523902 , 523907 , 526951 , 532498 , 536944 , 543708 , 558117 , 621764 , 621979 , 623089 , 623216 , 718798 , 725579 , 727330 , 732905 , 750701 , 772763 , 786552 , 793997 );
Copy