3
15.87 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
466228
439800
465167
524439
529135
537991
484316
524226
415966
434815
443833
448802
466987
477545
567664
567290
579182
559551
587066
598698
624550
641370
586590
440619
327170
424831
465330
486377
494329
449595
574519
617784
597126
394417
431422
472441
484880
475704
577966
563865
573942
595127
621463
627625
479709
446976
522287
558240
564120
576240
591203
594437
408675
558134
577658
562496
592346
599249
446431
524208
520330
602268
606015
613515
596466
625991
609880
495393
457676
522013
]
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 (466228 , 439800 , 465167 , 524439 , 529135 , 537991 , 484316 , 524226 , 415966 , 434815 , 443833 , 448802 , 466987 , 477545 , 567664 , 567290 , 579182 , 559551 , 587066 , 598698 , 624550 , 641370 , 586590 , 440619 , 327170 , 424831 , 465330 , 486377 , 494329 , 449595 , 574519 , 617784 , 597126 , 394417 , 431422 , 472441 , 484880 , 475704 , 577966 , 563865 , 573942 , 595127 , 621463 , 627625 , 479709 , 446976 , 522287 , 558240 , 564120 , 576240 , 591203 , 594437 , 408675 , 558134 , 577658 , 562496 , 592346 , 599249 , 446431 , 524208 , 520330 , 602268 , 606015 , 613515 , 596466 , 625991 , 609880 , 495393 , 457676 , 522013 );
Copy
4
2.46 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
327170
394417
408675
415966
424831
431422
434815
439800
440619
443833
446431
446976
448802
449595
457676
465167
465330
466228
466987
472441
475704
477545
479709
484316
484880
486377
494329
495393
520330
522013
522287
524208
524226
524439
529135
537991
558134
558240
559551
562496
563865
564120
567290
567664
573942
574519
576240
577658
577966
579182
586590
587066
591203
592346
594437
595127
596466
597126
598698
599249
602268
606015
609880
613515
617784
621463
624550
625991
627625
641370
]
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 (327170 , 394417 , 408675 , 415966 , 424831 , 431422 , 434815 , 439800 , 440619 , 443833 , 446431 , 446976 , 448802 , 449595 , 457676 , 465167 , 465330 , 466228 , 466987 , 472441 , 475704 , 477545 , 479709 , 484316 , 484880 , 486377 , 494329 , 495393 , 520330 , 522013 , 522287 , 524208 , 524226 , 524439 , 529135 , 537991 , 558134 , 558240 , 559551 , 562496 , 563865 , 564120 , 567290 , 567664 , 573942 , 574519 , 576240 , 577658 , 577966 , 579182 , 586590 , 587066 , 591203 , 592346 , 594437 , 595127 , 596466 , 597126 , 598698 , 599249 , 602268 , 606015 , 609880 , 613515 , 617784 , 621463 , 624550 , 625991 , 627625 , 641370 );
Copy
5
100.42 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
327170
394417
408675
415966
424831
431422
434815
439800
440619
443833
446431
446976
448802
449595
457676
465167
465330
466228
466987
472441
475704
477545
479709
484316
484880
486377
494329
495393
520330
522013
522287
524208
524226
524439
529135
537991
558134
558240
559551
562496
563865
564120
567290
567664
573942
574519
576240
577658
577966
579182
586590
587066
591203
592346
594437
595127
596466
597126
598698
599249
602268
606015
609880
613515
617784
621463
624550
625991
627625
641370
]
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 (327170 , 394417 , 408675 , 415966 , 424831 , 431422 , 434815 , 439800 , 440619 , 443833 , 446431 , 446976 , 448802 , 449595 , 457676 , 465167 , 465330 , 466228 , 466987 , 472441 , 475704 , 477545 , 479709 , 484316 , 484880 , 486377 , 494329 , 495393 , 520330 , 522013 , 522287 , 524208 , 524226 , 524439 , 529135 , 537991 , 558134 , 558240 , 559551 , 562496 , 563865 , 564120 , 567290 , 567664 , 573942 , 574519 , 576240 , 577658 , 577966 , 579182 , 586590 , 587066 , 591203 , 592346 , 594437 , 595127 , 596466 , 597126 , 598698 , 599249 , 602268 , 606015 , 609880 , 613515 , 617784 , 621463 , 624550 , 625991 , 627625 , 641370 );
Copy