3
8.71 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
772392
512196
776362
718445
616677
628947
776365
717551
586003
592220
615089
793399
767802
790762
530114
627268
785792
769210
732919
588550
628949
773767
616676
468266
697591
592190
617544
777978
776334
777112
773844
648123
672145
807126
776331
801920
725029
632128
717580
785795
708638
783072
772344
796392
640047
804312
609109
632747
787829
672315
756336
572266
588602
772857
449822
569329
485526
565987
609861
591198
527431
516861
619475
]
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 (772392 , 512196 , 776362 , 718445 , 616677 , 628947 , 776365 , 717551 , 586003 , 592220 , 615089 , 793399 , 767802 , 790762 , 530114 , 627268 , 785792 , 769210 , 732919 , 588550 , 628949 , 773767 , 616676 , 468266 , 697591 , 592190 , 617544 , 777978 , 776334 , 777112 , 773844 , 648123 , 672145 , 807126 , 776331 , 801920 , 725029 , 632128 , 717580 , 785795 , 708638 , 783072 , 772344 , 796392 , 640047 , 804312 , 609109 , 632747 , 787829 , 672315 , 756336 , 572266 , 588602 , 772857 , 449822 , 569329 , 485526 , 565987 , 609861 , 591198 , 527431 , 516861 , 619475 );
Copy
4
2.27 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
449822
468266
485526
512196
516861
527431
530114
565987
569329
572266
586003
588550
588602
591198
592190
592220
609109
609861
615089
616676
616677
617544
619475
627268
628947
628949
632128
632747
640047
648123
672145
672315
697591
708638
717551
717580
718445
725029
732919
756336
767802
769210
772344
772392
772857
773767
773844
776331
776334
776362
776365
777112
777978
783072
785792
785795
787829
790762
793399
796392
801920
804312
807126
]
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 (449822 , 468266 , 485526 , 512196 , 516861 , 527431 , 530114 , 565987 , 569329 , 572266 , 586003 , 588550 , 588602 , 591198 , 592190 , 592220 , 609109 , 609861 , 615089 , 616676 , 616677 , 617544 , 619475 , 627268 , 628947 , 628949 , 632128 , 632747 , 640047 , 648123 , 672145 , 672315 , 697591 , 708638 , 717551 , 717580 , 718445 , 725029 , 732919 , 756336 , 767802 , 769210 , 772344 , 772392 , 772857 , 773767 , 773844 , 776331 , 776334 , 776362 , 776365 , 777112 , 777978 , 783072 , 785792 , 785795 , 787829 , 790762 , 793399 , 796392 , 801920 , 804312 , 807126 );
Copy
5
338.00 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
449822
468266
485526
512196
516861
527431
530114
565987
569329
572266
586003
588550
588602
591198
592190
592220
609109
609861
615089
616676
616677
617544
619475
627268
628947
628949
632128
632747
640047
648123
672145
672315
697591
708638
717551
717580
718445
725029
732919
756336
767802
769210
772344
772392
772857
773767
773844
776331
776334
776362
776365
777112
777978
783072
785792
785795
787829
790762
793399
796392
801920
804312
807126
]
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 (449822 , 468266 , 485526 , 512196 , 516861 , 527431 , 530114 , 565987 , 569329 , 572266 , 586003 , 588550 , 588602 , 591198 , 592190 , 592220 , 609109 , 609861 , 615089 , 616676 , 616677 , 617544 , 619475 , 627268 , 628947 , 628949 , 632128 , 632747 , 640047 , 648123 , 672145 , 672315 , 697591 , 708638 , 717551 , 717580 , 718445 , 725029 , 732919 , 756336 , 767802 , 769210 , 772344 , 772392 , 772857 , 773767 , 773844 , 776331 , 776334 , 776362 , 776365 , 777112 , 777978 , 783072 , 785792 , 785795 , 787829 , 790762 , 793399 , 796392 , 801920 , 804312 , 807126 );
Copy