3
9.42 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
540056
542864
771623
762225
718782
766368
680183
634787
683262
725392
763741
743470
597227
765517
704226
597260
718766
791362
773474
801280
543627
751567
619204
801292
718745
456244
658865
631249
637741
464727
543652
781358
554743
775958
696202
555805
784260
782745
599969
786458
767218
651148
767329
601584
704916
602199
817317
767208
800698
723933
809909
541575
743380
776940
552938
558622
549763
699625
567453
439798
775860
603552
647936
683054
]
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 (540056 , 542864 , 771623 , 762225 , 718782 , 766368 , 680183 , 634787 , 683262 , 725392 , 763741 , 743470 , 597227 , 765517 , 704226 , 597260 , 718766 , 791362 , 773474 , 801280 , 543627 , 751567 , 619204 , 801292 , 718745 , 456244 , 658865 , 631249 , 637741 , 464727 , 543652 , 781358 , 554743 , 775958 , 696202 , 555805 , 784260 , 782745 , 599969 , 786458 , 767218 , 651148 , 767329 , 601584 , 704916 , 602199 , 817317 , 767208 , 800698 , 723933 , 809909 , 541575 , 743380 , 776940 , 552938 , 558622 , 549763 , 699625 , 567453 , 439798 , 775860 , 603552 , 647936 , 683054 );
Copy
4
2.39 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
456244
464727
540056
541575
542864
543627
543652
549763
552938
554743
555805
558622
567453
597227
597260
599969
601584
602199
603552
619204
631249
634787
637741
647936
651148
658865
680183
683054
683262
696202
699625
704226
704916
718745
718766
718782
723933
725392
743380
743470
751567
762225
763741
765517
766368
767208
767218
767329
771623
773474
775860
775958
776940
781358
782745
784260
786458
791362
800698
801280
801292
809909
817317
]
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 , 456244 , 464727 , 540056 , 541575 , 542864 , 543627 , 543652 , 549763 , 552938 , 554743 , 555805 , 558622 , 567453 , 597227 , 597260 , 599969 , 601584 , 602199 , 603552 , 619204 , 631249 , 634787 , 637741 , 647936 , 651148 , 658865 , 680183 , 683054 , 683262 , 696202 , 699625 , 704226 , 704916 , 718745 , 718766 , 718782 , 723933 , 725392 , 743380 , 743470 , 751567 , 762225 , 763741 , 765517 , 766368 , 767208 , 767218 , 767329 , 771623 , 773474 , 775860 , 775958 , 776940 , 781358 , 782745 , 784260 , 786458 , 791362 , 800698 , 801280 , 801292 , 809909 , 817317 );
Copy
5
104.94 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
456244
464727
540056
541575
542864
543627
543652
549763
552938
554743
555805
558622
567453
597227
597260
599969
601584
602199
603552
619204
631249
634787
637741
647936
651148
658865
680183
683054
683262
696202
699625
704226
704916
718745
718766
718782
723933
725392
743380
743470
751567
762225
763741
765517
766368
767208
767218
767329
771623
773474
775860
775958
776940
781358
782745
784260
786458
791362
800698
801280
801292
809909
817317
]
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 , 456244 , 464727 , 540056 , 541575 , 542864 , 543627 , 543652 , 549763 , 552938 , 554743 , 555805 , 558622 , 567453 , 597227 , 597260 , 599969 , 601584 , 602199 , 603552 , 619204 , 631249 , 634787 , 637741 , 647936 , 651148 , 658865 , 680183 , 683054 , 683262 , 696202 , 699625 , 704226 , 704916 , 718745 , 718766 , 718782 , 723933 , 725392 , 743380 , 743470 , 751567 , 762225 , 763741 , 765517 , 766368 , 767208 , 767218 , 767329 , 771623 , 773474 , 775860 , 775958 , 776940 , 781358 , 782745 , 784260 , 786458 , 791362 , 800698 , 801280 , 801292 , 809909 , 817317 );
Copy