7
11.30 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
775045
755453
722546
713573
693188
685578
676799
676793
676372
676271
673630
671617
671579
662048
647641
643934
643928
637749
635916
634477
632333
624804
624802
624799
620871
612080
604627
596330
593220
590885
590858
555892
551117
551022
550586
534019
527999
527040
512980
499598
477744
475090
471366
464257
453745
451262
439207
439186
431371
430748
425579
410687
404690
401071
399408
387507
387039
385910
385538
385344
384282
382188
185332
97047
47854
33353
31627
11582
]
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 (775045 , 755453 , 722546 , 713573 , 693188 , 685578 , 676799 , 676793 , 676372 , 676271 , 673630 , 671617 , 671579 , 662048 , 647641 , 643934 , 643928 , 637749 , 635916 , 634477 , 632333 , 624804 , 624802 , 624799 , 620871 , 612080 , 604627 , 596330 , 593220 , 590885 , 590858 , 555892 , 551117 , 551022 , 550586 , 534019 , 527999 , 527040 , 512980 , 499598 , 477744 , 475090 , 471366 , 464257 , 453745 , 451262 , 439207 , 439186 , 431371 , 430748 , 425579 , 410687 , 404690 , 401071 , 399408 , 387507 , 387039 , 385910 , 385538 , 385344 , 384282 , 382188 , 185332 , 97047 , 47854 , 33353 , 31627 , 11582 );
Copy
8
3.19 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
11582
31627
33353
47854
97047
185332
382188
384282
385344
385538
385910
387039
387507
399408
401071
404690
410687
425579
430748
431371
439186
439207
451262
453745
464257
471366
475090
477744
499598
512980
527040
527999
534019
550586
551022
551117
555892
590858
590885
593220
596330
604627
612080
620871
624799
624802
624804
632333
634477
635916
637749
643928
643934
647641
662048
671579
671617
673630
676271
676372
676793
676799
685578
693188
713573
722546
755453
775045
]
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 (11582 , 31627 , 33353 , 47854 , 97047 , 185332 , 382188 , 384282 , 385344 , 385538 , 385910 , 387039 , 387507 , 399408 , 401071 , 404690 , 410687 , 425579 , 430748 , 431371 , 439186 , 439207 , 451262 , 453745 , 464257 , 471366 , 475090 , 477744 , 499598 , 512980 , 527040 , 527999 , 534019 , 550586 , 551022 , 551117 , 555892 , 590858 , 590885 , 593220 , 596330 , 604627 , 612080 , 620871 , 624799 , 624802 , 624804 , 632333 , 634477 , 635916 , 637749 , 643928 , 643934 , 647641 , 662048 , 671579 , 671617 , 673630 , 676271 , 676372 , 676793 , 676799 , 685578 , 693188 , 713573 , 722546 , 755453 , 775045 );
Copy
9
89.50 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
11582
31627
33353
47854
97047
185332
382188
384282
385344
385538
385910
387039
387507
399408
401071
404690
410687
425579
430748
431371
439186
439207
451262
453745
464257
471366
475090
477744
499598
512980
527040
527999
534019
550586
551022
551117
555892
590858
590885
593220
596330
604627
612080
620871
624799
624802
624804
632333
634477
635916
637749
643928
643934
647641
662048
671579
671617
673630
676271
676372
676793
676799
685578
693188
713573
722546
755453
775045
]
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 (11582 , 31627 , 33353 , 47854 , 97047 , 185332 , 382188 , 384282 , 385344 , 385538 , 385910 , 387039 , 387507 , 399408 , 401071 , 404690 , 410687 , 425579 , 430748 , 431371 , 439186 , 439207 , 451262 , 453745 , 464257 , 471366 , 475090 , 477744 , 499598 , 512980 , 527040 , 527999 , 534019 , 550586 , 551022 , 551117 , 555892 , 590858 , 590885 , 593220 , 596330 , 604627 , 612080 , 620871 , 624799 , 624802 , 624804 , 632333 , 634477 , 635916 , 637749 , 643928 , 643934 , 647641 , 662048 , 671579 , 671617 , 673630 , 676271 , 676372 , 676793 , 676799 , 685578 , 693188 , 713573 , 722546 , 755453 , 775045 );
Copy