3
11.18 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
555154
439798
583913
578642
546036
650608
656523
811882
811785
751170
727017
811862
811889
814333
817889
632750
626332
727556
562048
710265
630254
788127
810347
732589
741893
738564
678966
592890
555395
542285
645700
545337
593734
796919
737438
734364
640859
543652
599987
555186
551535
555360
677892
666472
681251
554711
585050
565571
565997
570735
548422
590730
809292
776940
518581
579707
554826
561488
558622
567277
618622
615714
633819
600995
541699
]
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 (555154 , 439798 , 583913 , 578642 , 546036 , 650608 , 656523 , 811882 , 811785 , 751170 , 727017 , 811862 , 811889 , 814333 , 817889 , 632750 , 626332 , 727556 , 562048 , 710265 , 630254 , 788127 , 810347 , 732589 , 741893 , 738564 , 678966 , 592890 , 555395 , 542285 , 645700 , 545337 , 593734 , 796919 , 737438 , 734364 , 640859 , 543652 , 599987 , 555186 , 551535 , 555360 , 677892 , 666472 , 681251 , 554711 , 585050 , 565571 , 565997 , 570735 , 548422 , 590730 , 809292 , 776940 , 518581 , 579707 , 554826 , 561488 , 558622 , 567277 , 618622 , 615714 , 633819 , 600995 , 541699 );
Copy
4
2.85 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
439798
518581
541699
542285
543652
545337
546036
548422
551535
554711
554826
555154
555186
555360
555395
558622
561488
562048
565571
565997
567277
570735
578642
579707
583913
585050
590730
592890
593734
599987
600995
615714
618622
626332
630254
632750
633819
640859
645700
650608
656523
666472
677892
678966
681251
710265
727017
727556
732589
734364
737438
738564
741893
751170
776940
788127
796919
809292
810347
811785
811862
811882
811889
814333
817889
]
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 (439798 , 518581 , 541699 , 542285 , 543652 , 545337 , 546036 , 548422 , 551535 , 554711 , 554826 , 555154 , 555186 , 555360 , 555395 , 558622 , 561488 , 562048 , 565571 , 565997 , 567277 , 570735 , 578642 , 579707 , 583913 , 585050 , 590730 , 592890 , 593734 , 599987 , 600995 , 615714 , 618622 , 626332 , 630254 , 632750 , 633819 , 640859 , 645700 , 650608 , 656523 , 666472 , 677892 , 678966 , 681251 , 710265 , 727017 , 727556 , 732589 , 734364 , 737438 , 738564 , 741893 , 751170 , 776940 , 788127 , 796919 , 809292 , 810347 , 811785 , 811862 , 811882 , 811889 , 814333 , 817889 );
Copy
5
75.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
439798
518581
541699
542285
543652
545337
546036
548422
551535
554711
554826
555154
555186
555360
555395
558622
561488
562048
565571
565997
567277
570735
578642
579707
583913
585050
590730
592890
593734
599987
600995
615714
618622
626332
630254
632750
633819
640859
645700
650608
656523
666472
677892
678966
681251
710265
727017
727556
732589
734364
737438
738564
741893
751170
776940
788127
796919
809292
810347
811785
811862
811882
811889
814333
817889
]
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 (439798 , 518581 , 541699 , 542285 , 543652 , 545337 , 546036 , 548422 , 551535 , 554711 , 554826 , 555154 , 555186 , 555360 , 555395 , 558622 , 561488 , 562048 , 565571 , 565997 , 567277 , 570735 , 578642 , 579707 , 583913 , 585050 , 590730 , 592890 , 593734 , 599987 , 600995 , 615714 , 618622 , 626332 , 630254 , 632750 , 633819 , 640859 , 645700 , 650608 , 656523 , 666472 , 677892 , 678966 , 681251 , 710265 , 727017 , 727556 , 732589 , 734364 , 737438 , 738564 , 741893 , 751170 , 776940 , 788127 , 796919 , 809292 , 810347 , 811785 , 811862 , 811882 , 811889 , 814333 , 817889 );
Copy