3
12.17 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
770382
666548
770501
523205
752648
588071
633502
527755
505317
705099
614867
534994
530269
428223
637032
814031
811497
599988
640530
534772
628553
628414
597204
566766
533978
676112
676632
448821
547496
639816
779114
515053
755079
450323
427174
447810
534215
482283
573461
508150
523204
542595
462379
545982
641949
510798
420406
631701
568379
777043
742865
556505
641955
791209
609892
527927
742817
666525
635275
529794
813101
726872
524506
527931
]
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 (770382 , 666548 , 770501 , 523205 , 752648 , 588071 , 633502 , 527755 , 505317 , 705099 , 614867 , 534994 , 530269 , 428223 , 637032 , 814031 , 811497 , 599988 , 640530 , 534772 , 628553 , 628414 , 597204 , 566766 , 533978 , 676112 , 676632 , 448821 , 547496 , 639816 , 779114 , 515053 , 755079 , 450323 , 427174 , 447810 , 534215 , 482283 , 573461 , 508150 , 523204 , 542595 , 462379 , 545982 , 641949 , 510798 , 420406 , 631701 , 568379 , 777043 , 742865 , 556505 , 641955 , 791209 , 609892 , 527927 , 742817 , 666525 , 635275 , 529794 , 813101 , 726872 , 524506 , 527931 );
Copy
4
3.10 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
420406
427174
428223
447810
448821
450323
462379
482283
505317
508150
510798
515053
523204
523205
524506
527755
527927
527931
529794
530269
533978
534215
534772
534994
542595
545982
547496
556505
566766
568379
573461
588071
597204
599988
609892
614867
628414
628553
631701
633502
635275
637032
639816
640530
641949
641955
666525
666548
676112
676632
705099
726872
742817
742865
752648
755079
770382
770501
777043
779114
791209
811497
813101
814031
]
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 (420406 , 427174 , 428223 , 447810 , 448821 , 450323 , 462379 , 482283 , 505317 , 508150 , 510798 , 515053 , 523204 , 523205 , 524506 , 527755 , 527927 , 527931 , 529794 , 530269 , 533978 , 534215 , 534772 , 534994 , 542595 , 545982 , 547496 , 556505 , 566766 , 568379 , 573461 , 588071 , 597204 , 599988 , 609892 , 614867 , 628414 , 628553 , 631701 , 633502 , 635275 , 637032 , 639816 , 640530 , 641949 , 641955 , 666525 , 666548 , 676112 , 676632 , 705099 , 726872 , 742817 , 742865 , 752648 , 755079 , 770382 , 770501 , 777043 , 779114 , 791209 , 811497 , 813101 , 814031 );
Copy
5
77.71 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
420406
427174
428223
447810
448821
450323
462379
482283
505317
508150
510798
515053
523204
523205
524506
527755
527927
527931
529794
530269
533978
534215
534772
534994
542595
545982
547496
556505
566766
568379
573461
588071
597204
599988
609892
614867
628414
628553
631701
633502
635275
637032
639816
640530
641949
641955
666525
666548
676112
676632
705099
726872
742817
742865
752648
755079
770382
770501
777043
779114
791209
811497
813101
814031
]
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 (420406 , 427174 , 428223 , 447810 , 448821 , 450323 , 462379 , 482283 , 505317 , 508150 , 510798 , 515053 , 523204 , 523205 , 524506 , 527755 , 527927 , 527931 , 529794 , 530269 , 533978 , 534215 , 534772 , 534994 , 542595 , 545982 , 547496 , 556505 , 566766 , 568379 , 573461 , 588071 , 597204 , 599988 , 609892 , 614867 , 628414 , 628553 , 631701 , 633502 , 635275 , 637032 , 639816 , 640530 , 641949 , 641955 , 666525 , 666548 , 676112 , 676632 , 705099 , 726872 , 742817 , 742865 , 752648 , 755079 , 770382 , 770501 , 777043 , 779114 , 791209 , 811497 , 813101 , 814031 );
Copy