3
10.96 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
73280
414008
445596
816641
789993
692115
565218
531666
568241
702452
397772
538241
737978
414005
815472
713216
717074
671454
740420
540257
531658
811329
785180
751672
765028
768363
486292
547743
777361
279404
540090
566318
714752
743822
785482
414016
807913
730494
770954
465647
514877
592481
592299
783205
528572
453138
642677
606608
464386
462491
521324
495226
496101
527001
516226
571976
475224
484907
562142
606888
400196
587461
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 (73280 , 414008 , 445596 , 816641 , 789993 , 692115 , 565218 , 531666 , 568241 , 702452 , 397772 , 538241 , 737978 , 414005 , 815472 , 713216 , 717074 , 671454 , 740420 , 540257 , 531658 , 811329 , 785180 , 751672 , 765028 , 768363 , 486292 , 547743 , 777361 , 279404 , 540090 , 566318 , 714752 , 743822 , 785482 , 414016 , 807913 , 730494 , 770954 , 465647 , 514877 , 592481 , 592299 , 783205 , 528572 , 453138 , 642677 , 606608 , 464386 , 462491 , 521324 , 495226 , 496101 , 527001 , 516226 , 571976 , 475224 , 484907 , 562142 , 606888 , 400196 , 587461 , 526951 , 621764 );
Copy
4
3.07 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
73280
279404
397772
400196
414005
414008
414016
445596
453138
462491
464386
465647
475224
484907
486292
495226
496101
514877
516226
521324
526951
527001
528572
531658
531666
538241
540090
540257
547743
562142
565218
566318
568241
571976
587461
592299
592481
606608
606888
621764
642677
671454
692115
702452
713216
714752
717074
730494
737978
740420
743822
751672
765028
768363
770954
777361
783205
785180
785482
789993
807913
811329
815472
816641
]
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 (73280 , 279404 , 397772 , 400196 , 414005 , 414008 , 414016 , 445596 , 453138 , 462491 , 464386 , 465647 , 475224 , 484907 , 486292 , 495226 , 496101 , 514877 , 516226 , 521324 , 526951 , 527001 , 528572 , 531658 , 531666 , 538241 , 540090 , 540257 , 547743 , 562142 , 565218 , 566318 , 568241 , 571976 , 587461 , 592299 , 592481 , 606608 , 606888 , 621764 , 642677 , 671454 , 692115 , 702452 , 713216 , 714752 , 717074 , 730494 , 737978 , 740420 , 743822 , 751672 , 765028 , 768363 , 770954 , 777361 , 783205 , 785180 , 785482 , 789993 , 807913 , 811329 , 815472 , 816641 );
Copy
5
74.15 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
73280
279404
397772
400196
414005
414008
414016
445596
453138
462491
464386
465647
475224
484907
486292
495226
496101
514877
516226
521324
526951
527001
528572
531658
531666
538241
540090
540257
547743
562142
565218
566318
568241
571976
587461
592299
592481
606608
606888
621764
642677
671454
692115
702452
713216
714752
717074
730494
737978
740420
743822
751672
765028
768363
770954
777361
783205
785180
785482
789993
807913
811329
815472
816641
]
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 (73280 , 279404 , 397772 , 400196 , 414005 , 414008 , 414016 , 445596 , 453138 , 462491 , 464386 , 465647 , 475224 , 484907 , 486292 , 495226 , 496101 , 514877 , 516226 , 521324 , 526951 , 527001 , 528572 , 531658 , 531666 , 538241 , 540090 , 540257 , 547743 , 562142 , 565218 , 566318 , 568241 , 571976 , 587461 , 592299 , 592481 , 606608 , 606888 , 621764 , 642677 , 671454 , 692115 , 702452 , 713216 , 714752 , 717074 , 730494 , 737978 , 740420 , 743822 , 751672 , 765028 , 768363 , 770954 , 777361 , 783205 , 785180 , 785482 , 789993 , 807913 , 811329 , 815472 , 816641 );
Copy