3
9.11 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
397869
785114
795747
367800
7741
697391
751386
716148
30208
823887
561213
361126
581196
61969
750831
382958
336085
668706
616993
764880
387631
459197
605229
723764
758292
397708
516824
807057
786016
764414
781369
30791
664227
448055
383002
636638
628527
498045
399923
450277
545905
569412
802631
788818
807830
427135
468837
509923
523034
607714
590410
761066
445492
492933
716765
702453
514682
476578
457832
478037
579707
450990
485285
612087
]
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 (397869 , 785114 , 795747 , 367800 , 7741 , 697391 , 751386 , 716148 , 30208 , 823887 , 561213 , 361126 , 581196 , 61969 , 750831 , 382958 , 336085 , 668706 , 616993 , 764880 , 387631 , 459197 , 605229 , 723764 , 758292 , 397708 , 516824 , 807057 , 786016 , 764414 , 781369 , 30791 , 664227 , 448055 , 383002 , 636638 , 628527 , 498045 , 399923 , 450277 , 545905 , 569412 , 802631 , 788818 , 807830 , 427135 , 468837 , 509923 , 523034 , 607714 , 590410 , 761066 , 445492 , 492933 , 716765 , 702453 , 514682 , 476578 , 457832 , 478037 , 579707 , 450990 , 485285 , 612087 );
Copy
4
2.28 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
7741
30208
30791
61969
336085
361126
367800
382958
383002
387631
397708
397869
399923
427135
445492
448055
450277
450990
457832
459197
468837
476578
478037
485285
492933
498045
509923
514682
516824
523034
545905
561213
569412
579707
581196
590410
605229
607714
612087
616993
628527
636638
664227
668706
697391
702453
716148
716765
723764
750831
751386
758292
761066
764414
764880
781369
785114
786016
788818
795747
802631
807057
807830
823887
]
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 (7741 , 30208 , 30791 , 61969 , 336085 , 361126 , 367800 , 382958 , 383002 , 387631 , 397708 , 397869 , 399923 , 427135 , 445492 , 448055 , 450277 , 450990 , 457832 , 459197 , 468837 , 476578 , 478037 , 485285 , 492933 , 498045 , 509923 , 514682 , 516824 , 523034 , 545905 , 561213 , 569412 , 579707 , 581196 , 590410 , 605229 , 607714 , 612087 , 616993 , 628527 , 636638 , 664227 , 668706 , 697391 , 702453 , 716148 , 716765 , 723764 , 750831 , 751386 , 758292 , 761066 , 764414 , 764880 , 781369 , 785114 , 786016 , 788818 , 795747 , 802631 , 807057 , 807830 , 823887 );
Copy
5
106.87 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
7741
30208
30791
61969
336085
361126
367800
382958
383002
387631
397708
397869
399923
427135
445492
448055
450277
450990
457832
459197
468837
476578
478037
485285
492933
498045
509923
514682
516824
523034
545905
561213
569412
579707
581196
590410
605229
607714
612087
616993
628527
636638
664227
668706
697391
702453
716148
716765
723764
750831
751386
758292
761066
764414
764880
781369
785114
786016
788818
795747
802631
807057
807830
823887
]
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 (7741 , 30208 , 30791 , 61969 , 336085 , 361126 , 367800 , 382958 , 383002 , 387631 , 397708 , 397869 , 399923 , 427135 , 445492 , 448055 , 450277 , 450990 , 457832 , 459197 , 468837 , 476578 , 478037 , 485285 , 492933 , 498045 , 509923 , 514682 , 516824 , 523034 , 545905 , 561213 , 569412 , 579707 , 581196 , 590410 , 605229 , 607714 , 612087 , 616993 , 628527 , 636638 , 664227 , 668706 , 697391 , 702453 , 716148 , 716765 , 723764 , 750831 , 751386 , 758292 , 761066 , 764414 , 764880 , 781369 , 785114 , 786016 , 788818 , 795747 , 802631 , 807057 , 807830 , 823887 );
Copy