3
9.14 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
614404
497701
801835
557872
726851
739258
742515
470683
670946
805246
543466
805048
552593
590137
495990
552590
784439
620142
791578
385285
443091
552587
473775
461410
488428
552582
461818
388308
481126
538006
678010
748486
552589
478378
676376
532040
573734
386605
396258
604854
801725
423973
596250
806742
784750
483005
552585
640837
552597
201639
467517
582849
505912
482245
758803
408136
446736
706389
417895
562343
446976
545944
617346
515056
517005
501259
606687
597282
562831
472681
623678
508528
508150
666438
]
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 (614404 , 497701 , 801835 , 557872 , 726851 , 739258 , 742515 , 470683 , 670946 , 805246 , 543466 , 805048 , 552593 , 590137 , 495990 , 552590 , 784439 , 620142 , 791578 , 385285 , 443091 , 552587 , 473775 , 461410 , 488428 , 552582 , 461818 , 388308 , 481126 , 538006 , 678010 , 748486 , 552589 , 478378 , 676376 , 532040 , 573734 , 386605 , 396258 , 604854 , 801725 , 423973 , 596250 , 806742 , 784750 , 483005 , 552585 , 640837 , 552597 , 201639 , 467517 , 582849 , 505912 , 482245 , 758803 , 408136 , 446736 , 706389 , 417895 , 562343 , 446976 , 545944 , 617346 , 515056 , 517005 , 501259 , 606687 , 597282 , 562831 , 472681 , 623678 , 508528 , 508150 , 666438 );
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
201639
385285
386605
388308
396258
408136
417895
423973
443091
446736
446976
461410
461818
467517
470683
472681
473775
478378
481126
482245
483005
488428
495990
497701
501259
505912
508150
508528
515056
517005
532040
538006
543466
545944
552582
552585
552587
552589
552590
552593
552597
557872
562343
562831
573734
582849
590137
596250
597282
604854
606687
614404
617346
620142
623678
640837
666438
670946
676376
678010
706389
726851
739258
742515
748486
758803
784439
784750
791578
801725
801835
805048
805246
806742
]
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 (201639 , 385285 , 386605 , 388308 , 396258 , 408136 , 417895 , 423973 , 443091 , 446736 , 446976 , 461410 , 461818 , 467517 , 470683 , 472681 , 473775 , 478378 , 481126 , 482245 , 483005 , 488428 , 495990 , 497701 , 501259 , 505912 , 508150 , 508528 , 515056 , 517005 , 532040 , 538006 , 543466 , 545944 , 552582 , 552585 , 552587 , 552589 , 552590 , 552593 , 552597 , 557872 , 562343 , 562831 , 573734 , 582849 , 590137 , 596250 , 597282 , 604854 , 606687 , 614404 , 617346 , 620142 , 623678 , 640837 , 666438 , 670946 , 676376 , 678010 , 706389 , 726851 , 739258 , 742515 , 748486 , 758803 , 784439 , 784750 , 791578 , 801725 , 801835 , 805048 , 805246 , 806742 );
Copy
5
129.73 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
201639
385285
386605
388308
396258
408136
417895
423973
443091
446736
446976
461410
461818
467517
470683
472681
473775
478378
481126
482245
483005
488428
495990
497701
501259
505912
508150
508528
515056
517005
532040
538006
543466
545944
552582
552585
552587
552589
552590
552593
552597
557872
562343
562831
573734
582849
590137
596250
597282
604854
606687
614404
617346
620142
623678
640837
666438
670946
676376
678010
706389
726851
739258
742515
748486
758803
784439
784750
791578
801725
801835
805048
805246
806742
]
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 (201639 , 385285 , 386605 , 388308 , 396258 , 408136 , 417895 , 423973 , 443091 , 446736 , 446976 , 461410 , 461818 , 467517 , 470683 , 472681 , 473775 , 478378 , 481126 , 482245 , 483005 , 488428 , 495990 , 497701 , 501259 , 505912 , 508150 , 508528 , 515056 , 517005 , 532040 , 538006 , 543466 , 545944 , 552582 , 552585 , 552587 , 552589 , 552590 , 552593 , 552597 , 557872 , 562343 , 562831 , 573734 , 582849 , 590137 , 596250 , 597282 , 604854 , 606687 , 614404 , 617346 , 620142 , 623678 , 640837 , 666438 , 670946 , 676376 , 678010 , 706389 , 726851 , 739258 , 742515 , 748486 , 758803 , 784439 , 784750 , 791578 , 801725 , 801835 , 805048 , 805246 , 806742 );
Copy