3
10.77 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
725189
626328
637174
635694
517417
557712
483490
406935
720655
705493
656217
462058
714373
606804
809877
800987
757983
661917
580347
483503
744053
486005
483495
473868
462064
565880
744077
808290
801579
471057
585261
804777
593742
806910
458652
689020
813272
713002
790328
778481
725219
612287
8716
459368
742272
715935
628625
768648
453978
462057
613782
455410
441971
728255
486013
807842
790499
769465
492965
626015
466928
492958
581953
546914
462478
576849
453547
440662
461904
528053
626478
524029
]
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 (725189 , 626328 , 637174 , 635694 , 517417 , 557712 , 483490 , 406935 , 720655 , 705493 , 656217 , 462058 , 714373 , 606804 , 809877 , 800987 , 757983 , 661917 , 580347 , 483503 , 744053 , 486005 , 483495 , 473868 , 462064 , 565880 , 744077 , 808290 , 801579 , 471057 , 585261 , 804777 , 593742 , 806910 , 458652 , 689020 , 813272 , 713002 , 790328 , 778481 , 725219 , 612287 , 8716 , 459368 , 742272 , 715935 , 628625 , 768648 , 453978 , 462057 , 613782 , 455410 , 441971 , 728255 , 486013 , 807842 , 790499 , 769465 , 492965 , 626015 , 466928 , 492958 , 581953 , 546914 , 462478 , 576849 , 453547 , 440662 , 461904 , 528053 , 626478 , 524029 );
Copy
4
3.22 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
8716
406935
440662
441971
453547
453978
455410
458652
459368
461904
462057
462058
462064
462478
466928
471057
473868
483490
483495
483503
486005
486013
492958
492965
517417
524029
528053
546914
557712
565880
576849
580347
581953
585261
593742
606804
612287
613782
626015
626328
626478
628625
635694
637174
656217
661917
689020
705493
713002
714373
715935
720655
725189
725219
728255
742272
744053
744077
757983
768648
769465
778481
790328
790499
800987
801579
804777
806910
807842
808290
809877
813272
]
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 (8716 , 406935 , 440662 , 441971 , 453547 , 453978 , 455410 , 458652 , 459368 , 461904 , 462057 , 462058 , 462064 , 462478 , 466928 , 471057 , 473868 , 483490 , 483495 , 483503 , 486005 , 486013 , 492958 , 492965 , 517417 , 524029 , 528053 , 546914 , 557712 , 565880 , 576849 , 580347 , 581953 , 585261 , 593742 , 606804 , 612287 , 613782 , 626015 , 626328 , 626478 , 628625 , 635694 , 637174 , 656217 , 661917 , 689020 , 705493 , 713002 , 714373 , 715935 , 720655 , 725189 , 725219 , 728255 , 742272 , 744053 , 744077 , 757983 , 768648 , 769465 , 778481 , 790328 , 790499 , 800987 , 801579 , 804777 , 806910 , 807842 , 808290 , 809877 , 813272 );
Copy
5
115.27 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
8716
406935
440662
441971
453547
453978
455410
458652
459368
461904
462057
462058
462064
462478
466928
471057
473868
483490
483495
483503
486005
486013
492958
492965
517417
524029
528053
546914
557712
565880
576849
580347
581953
585261
593742
606804
612287
613782
626015
626328
626478
628625
635694
637174
656217
661917
689020
705493
713002
714373
715935
720655
725189
725219
728255
742272
744053
744077
757983
768648
769465
778481
790328
790499
800987
801579
804777
806910
807842
808290
809877
813272
]
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 (8716 , 406935 , 440662 , 441971 , 453547 , 453978 , 455410 , 458652 , 459368 , 461904 , 462057 , 462058 , 462064 , 462478 , 466928 , 471057 , 473868 , 483490 , 483495 , 483503 , 486005 , 486013 , 492958 , 492965 , 517417 , 524029 , 528053 , 546914 , 557712 , 565880 , 576849 , 580347 , 581953 , 585261 , 593742 , 606804 , 612287 , 613782 , 626015 , 626328 , 626478 , 628625 , 635694 , 637174 , 656217 , 661917 , 689020 , 705493 , 713002 , 714373 , 715935 , 720655 , 725189 , 725219 , 728255 , 742272 , 744053 , 744077 , 757983 , 768648 , 769465 , 778481 , 790328 , 790499 , 800987 , 801579 , 804777 , 806910 , 807842 , 808290 , 809877 , 813272 );
Copy