3
10.97 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
635724
453820
749256
796917
629732
346211
6866
736813
753681
499388
448604
527503
609887
535775
504781
572655
430369
449377
293499
432181
448332
424195
392004
599693
810088
507951
448057
709654
414094
432944
416631
526498
424556
454511
537051
424008
513635
416522
449406
522746
512503
432363
429600
493825
620648
428929
432173
439320
600933
588520
499726
389462
592005
401849
479746
807326
537042
447799
472184
542321
461653
467568
823695
]
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 (635724 , 453820 , 749256 , 796917 , 629732 , 346211 , 6866 , 736813 , 753681 , 499388 , 448604 , 527503 , 609887 , 535775 , 504781 , 572655 , 430369 , 449377 , 293499 , 432181 , 448332 , 424195 , 392004 , 599693 , 810088 , 507951 , 448057 , 709654 , 414094 , 432944 , 416631 , 526498 , 424556 , 454511 , 537051 , 424008 , 513635 , 416522 , 449406 , 522746 , 512503 , 432363 , 429600 , 493825 , 620648 , 428929 , 432173 , 439320 , 600933 , 588520 , 499726 , 389462 , 592005 , 401849 , 479746 , 807326 , 537042 , 447799 , 472184 , 542321 , 461653 , 467568 , 823695 );
Copy
4
2.61 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
6866
293499
346211
389462
392004
401849
414094
416522
416631
424008
424195
424556
428929
429600
430369
432173
432181
432363
432944
439320
447799
448057
448332
448604
449377
449406
453820
454511
461653
467568
472184
479746
493825
499388
499726
504781
507951
512503
513635
522746
526498
527503
535775
537042
537051
542321
572655
588520
592005
599693
600933
609887
620648
629732
635724
709654
736813
749256
753681
796917
807326
810088
823695
]
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 (6866 , 293499 , 346211 , 389462 , 392004 , 401849 , 414094 , 416522 , 416631 , 424008 , 424195 , 424556 , 428929 , 429600 , 430369 , 432173 , 432181 , 432363 , 432944 , 439320 , 447799 , 448057 , 448332 , 448604 , 449377 , 449406 , 453820 , 454511 , 461653 , 467568 , 472184 , 479746 , 493825 , 499388 , 499726 , 504781 , 507951 , 512503 , 513635 , 522746 , 526498 , 527503 , 535775 , 537042 , 537051 , 542321 , 572655 , 588520 , 592005 , 599693 , 600933 , 609887 , 620648 , 629732 , 635724 , 709654 , 736813 , 749256 , 753681 , 796917 , 807326 , 810088 , 823695 );
Copy
5
93.16 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
6866
293499
346211
389462
392004
401849
414094
416522
416631
424008
424195
424556
428929
429600
430369
432173
432181
432363
432944
439320
447799
448057
448332
448604
449377
449406
453820
454511
461653
467568
472184
479746
493825
499388
499726
504781
507951
512503
513635
522746
526498
527503
535775
537042
537051
542321
572655
588520
592005
599693
600933
609887
620648
629732
635724
709654
736813
749256
753681
796917
807326
810088
823695
]
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 (6866 , 293499 , 346211 , 389462 , 392004 , 401849 , 414094 , 416522 , 416631 , 424008 , 424195 , 424556 , 428929 , 429600 , 430369 , 432173 , 432181 , 432363 , 432944 , 439320 , 447799 , 448057 , 448332 , 448604 , 449377 , 449406 , 453820 , 454511 , 461653 , 467568 , 472184 , 479746 , 493825 , 499388 , 499726 , 504781 , 507951 , 512503 , 513635 , 522746 , 526498 , 527503 , 535775 , 537042 , 537051 , 542321 , 572655 , 588520 , 592005 , 599693 , 600933 , 609887 , 620648 , 629732 , 635724 , 709654 , 736813 , 749256 , 753681 , 796917 , 807326 , 810088 , 823695 );
Copy