3
13.89 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
568185
577353
562846
583690
716323
692169
549353
552280
556525
597152
541594
576698
576721
541316
672804
577377
579296
644005
619401
597117
621305
629899
507680
542198
551916
576628
541895
541602
565102
592437
592456
626732
605338
541606
541634
541753
543471
549371
576696
699397
576720
607707
541651
741434
716879
541661
541808
541614
541683
541833
542961
541644
541667
541769
576723
541643
541671
542191
544472
576717
542195
541588
541924
]
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 (568185 , 577353 , 562846 , 583690 , 716323 , 692169 , 549353 , 552280 , 556525 , 597152 , 541594 , 576698 , 576721 , 541316 , 672804 , 577377 , 579296 , 644005 , 619401 , 597117 , 621305 , 629899 , 507680 , 542198 , 551916 , 576628 , 541895 , 541602 , 565102 , 592437 , 592456 , 626732 , 605338 , 541606 , 541634 , 541753 , 543471 , 549371 , 576696 , 699397 , 576720 , 607707 , 541651 , 741434 , 716879 , 541661 , 541808 , 541614 , 541683 , 541833 , 542961 , 541644 , 541667 , 541769 , 576723 , 541643 , 541671 , 542191 , 544472 , 576717 , 542195 , 541588 , 541924 );
Copy
4
208.99 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
507680
541316
541588
541594
541602
541606
541614
541634
541643
541644
541651
541661
541667
541671
541683
541753
541769
541808
541833
541895
541924
542191
542195
542198
542961
543471
544472
549353
549371
551916
552280
556525
562846
565102
568185
576628
576696
576698
576717
576720
576721
576723
577353
577377
579296
583690
592437
592456
597117
597152
605338
607707
619401
621305
626732
629899
644005
672804
692169
699397
716323
716879
741434
]
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 (507680 , 541316 , 541588 , 541594 , 541602 , 541606 , 541614 , 541634 , 541643 , 541644 , 541651 , 541661 , 541667 , 541671 , 541683 , 541753 , 541769 , 541808 , 541833 , 541895 , 541924 , 542191 , 542195 , 542198 , 542961 , 543471 , 544472 , 549353 , 549371 , 551916 , 552280 , 556525 , 562846 , 565102 , 568185 , 576628 , 576696 , 576698 , 576717 , 576720 , 576721 , 576723 , 577353 , 577377 , 579296 , 583690 , 592437 , 592456 , 597117 , 597152 , 605338 , 607707 , 619401 , 621305 , 626732 , 629899 , 644005 , 672804 , 692169 , 699397 , 716323 , 716879 , 741434 );
Copy
5
95.53 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
507680
541316
541588
541594
541602
541606
541614
541634
541643
541644
541651
541661
541667
541671
541683
541753
541769
541808
541833
541895
541924
542191
542195
542198
542961
543471
544472
549353
549371
551916
552280
556525
562846
565102
568185
576628
576696
576698
576717
576720
576721
576723
577353
577377
579296
583690
592437
592456
597117
597152
605338
607707
619401
621305
626732
629899
644005
672804
692169
699397
716323
716879
741434
]
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 (507680 , 541316 , 541588 , 541594 , 541602 , 541606 , 541614 , 541634 , 541643 , 541644 , 541651 , 541661 , 541667 , 541671 , 541683 , 541753 , 541769 , 541808 , 541833 , 541895 , 541924 , 542191 , 542195 , 542198 , 542961 , 543471 , 544472 , 549353 , 549371 , 551916 , 552280 , 556525 , 562846 , 565102 , 568185 , 576628 , 576696 , 576698 , 576717 , 576720 , 576721 , 576723 , 577353 , 577377 , 579296 , 583690 , 592437 , 592456 , 597117 , 597152 , 605338 , 607707 , 619401 , 621305 , 626732 , 629899 , 644005 , 672804 , 692169 , 699397 , 716323 , 716879 , 741434 );
Copy