3
13.13 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
632595
643103
803455
604517
635215
619204
531155
532812
636306
406381
820759
530275
583989
651634
676088
647859
668505
637442
641698
641700
637092
600022
631194
756395
632258
640751
536584
531420
543918
639334
636985
617427
634218
543771
681637
678153
638298
603258
632585
401919
644986
666527
676016
628332
635243
630552
532816
666906
676638
667748
674983
636033
521723
583690
675022
674982
576726
583982
611558
634134
586419
600268
517743
598648
676428
639719
637148
565541
637413
617423
619407
529792
516842
606577
]
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 (632595 , 643103 , 803455 , 604517 , 635215 , 619204 , 531155 , 532812 , 636306 , 406381 , 820759 , 530275 , 583989 , 651634 , 676088 , 647859 , 668505 , 637442 , 641698 , 641700 , 637092 , 600022 , 631194 , 756395 , 632258 , 640751 , 536584 , 531420 , 543918 , 639334 , 636985 , 617427 , 634218 , 543771 , 681637 , 678153 , 638298 , 603258 , 632585 , 401919 , 644986 , 666527 , 676016 , 628332 , 635243 , 630552 , 532816 , 666906 , 676638 , 667748 , 674983 , 636033 , 521723 , 583690 , 675022 , 674982 , 576726 , 583982 , 611558 , 634134 , 586419 , 600268 , 517743 , 598648 , 676428 , 639719 , 637148 , 565541 , 637413 , 617423 , 619407 , 529792 , 516842 , 606577 );
Copy
4
3.05 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
401919
406381
516842
517743
521723
529792
530275
531155
531420
532812
532816
536584
543771
543918
565541
576726
583690
583982
583989
586419
598648
600022
600268
603258
604517
606577
611558
617423
617427
619204
619407
628332
630552
631194
632258
632585
632595
634134
634218
635215
635243
636033
636306
636985
637092
637148
637413
637442
638298
639334
639719
640751
641698
641700
643103
644986
647859
651634
666527
666906
667748
668505
674982
674983
675022
676016
676088
676428
676638
678153
681637
756395
803455
820759
]
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 (401919 , 406381 , 516842 , 517743 , 521723 , 529792 , 530275 , 531155 , 531420 , 532812 , 532816 , 536584 , 543771 , 543918 , 565541 , 576726 , 583690 , 583982 , 583989 , 586419 , 598648 , 600022 , 600268 , 603258 , 604517 , 606577 , 611558 , 617423 , 617427 , 619204 , 619407 , 628332 , 630552 , 631194 , 632258 , 632585 , 632595 , 634134 , 634218 , 635215 , 635243 , 636033 , 636306 , 636985 , 637092 , 637148 , 637413 , 637442 , 638298 , 639334 , 639719 , 640751 , 641698 , 641700 , 643103 , 644986 , 647859 , 651634 , 666527 , 666906 , 667748 , 668505 , 674982 , 674983 , 675022 , 676016 , 676088 , 676428 , 676638 , 678153 , 681637 , 756395 , 803455 , 820759 );
Copy
5
96.30 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
401919
406381
516842
517743
521723
529792
530275
531155
531420
532812
532816
536584
543771
543918
565541
576726
583690
583982
583989
586419
598648
600022
600268
603258
604517
606577
611558
617423
617427
619204
619407
628332
630552
631194
632258
632585
632595
634134
634218
635215
635243
636033
636306
636985
637092
637148
637413
637442
638298
639334
639719
640751
641698
641700
643103
644986
647859
651634
666527
666906
667748
668505
674982
674983
675022
676016
676088
676428
676638
678153
681637
756395
803455
820759
]
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 (401919 , 406381 , 516842 , 517743 , 521723 , 529792 , 530275 , 531155 , 531420 , 532812 , 532816 , 536584 , 543771 , 543918 , 565541 , 576726 , 583690 , 583982 , 583989 , 586419 , 598648 , 600022 , 600268 , 603258 , 604517 , 606577 , 611558 , 617423 , 617427 , 619204 , 619407 , 628332 , 630552 , 631194 , 632258 , 632585 , 632595 , 634134 , 634218 , 635215 , 635243 , 636033 , 636306 , 636985 , 637092 , 637148 , 637413 , 637442 , 638298 , 639334 , 639719 , 640751 , 641698 , 641700 , 643103 , 644986 , 647859 , 651634 , 666527 , 666906 , 667748 , 668505 , 674982 , 674983 , 675022 , 676016 , 676088 , 676428 , 676638 , 678153 , 681637 , 756395 , 803455 , 820759 );
Copy