3
15.95 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
663420
598979
460340
487933
442026
452272
628065
602971
593724
789002
453914
455584
460338
444653
472991
528213
497313
514796
532982
624854
472248
514692
528699
530370
556762
679816
558515
596226
428530
417511
442968
429330
499026
529035
678778
678782
678790
515134
525890
489430
487938
536214
515994
566736
695124
529074
678779
678804
523021
524865
516784
531247
666819
458224
517048
528993
487910
525511
529078
519639
614094
390730
722443
596537
399595
424248
562513
644686
458615
389208
521785
526022
]
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 (663420 , 598979 , 460340 , 487933 , 442026 , 452272 , 628065 , 602971 , 593724 , 789002 , 453914 , 455584 , 460338 , 444653 , 472991 , 528213 , 497313 , 514796 , 532982 , 624854 , 472248 , 514692 , 528699 , 530370 , 556762 , 679816 , 558515 , 596226 , 428530 , 417511 , 442968 , 429330 , 499026 , 529035 , 678778 , 678782 , 678790 , 515134 , 525890 , 489430 , 487938 , 536214 , 515994 , 566736 , 695124 , 529074 , 678779 , 678804 , 523021 , 524865 , 516784 , 531247 , 666819 , 458224 , 517048 , 528993 , 487910 , 525511 , 529078 , 519639 , 614094 , 390730 , 722443 , 596537 , 399595 , 424248 , 562513 , 644686 , 458615 , 389208 , 521785 , 526022 );
Copy
4
2.61 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
389208
390730
399595
417511
424248
428530
429330
442026
442968
444653
452272
453914
455584
458224
458615
460338
460340
472248
472991
487910
487933
487938
489430
497313
499026
514692
514796
515134
515994
516784
517048
519639
521785
523021
524865
525511
525890
526022
528213
528699
528993
529035
529074
529078
530370
531247
532982
536214
556762
558515
562513
566736
593724
596226
596537
598979
602971
614094
624854
628065
644686
663420
666819
678778
678779
678782
678790
678804
679816
695124
722443
789002
]
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 (389208 , 390730 , 399595 , 417511 , 424248 , 428530 , 429330 , 442026 , 442968 , 444653 , 452272 , 453914 , 455584 , 458224 , 458615 , 460338 , 460340 , 472248 , 472991 , 487910 , 487933 , 487938 , 489430 , 497313 , 499026 , 514692 , 514796 , 515134 , 515994 , 516784 , 517048 , 519639 , 521785 , 523021 , 524865 , 525511 , 525890 , 526022 , 528213 , 528699 , 528993 , 529035 , 529074 , 529078 , 530370 , 531247 , 532982 , 536214 , 556762 , 558515 , 562513 , 566736 , 593724 , 596226 , 596537 , 598979 , 602971 , 614094 , 624854 , 628065 , 644686 , 663420 , 666819 , 678778 , 678779 , 678782 , 678790 , 678804 , 679816 , 695124 , 722443 , 789002 );
Copy
5
84.90 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
389208
390730
399595
417511
424248
428530
429330
442026
442968
444653
452272
453914
455584
458224
458615
460338
460340
472248
472991
487910
487933
487938
489430
497313
499026
514692
514796
515134
515994
516784
517048
519639
521785
523021
524865
525511
525890
526022
528213
528699
528993
529035
529074
529078
530370
531247
532982
536214
556762
558515
562513
566736
593724
596226
596537
598979
602971
614094
624854
628065
644686
663420
666819
678778
678779
678782
678790
678804
679816
695124
722443
789002
]
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 (389208 , 390730 , 399595 , 417511 , 424248 , 428530 , 429330 , 442026 , 442968 , 444653 , 452272 , 453914 , 455584 , 458224 , 458615 , 460338 , 460340 , 472248 , 472991 , 487910 , 487933 , 487938 , 489430 , 497313 , 499026 , 514692 , 514796 , 515134 , 515994 , 516784 , 517048 , 519639 , 521785 , 523021 , 524865 , 525511 , 525890 , 526022 , 528213 , 528699 , 528993 , 529035 , 529074 , 529078 , 530370 , 531247 , 532982 , 536214 , 556762 , 558515 , 562513 , 566736 , 593724 , 596226 , 596537 , 598979 , 602971 , 614094 , 624854 , 628065 , 644686 , 663420 , 666819 , 678778 , 678779 , 678782 , 678790 , 678804 , 679816 , 695124 , 722443 , 789002 );
Copy