4
12.80 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
554449
542241
574295
578215
584444
654914
671656
553215
589142
640785
607737
811643
412702
464952
446536
476208
452689
526996
527892
529079
483638
493917
503468
529034
678779
678804
442026
452272
628065
602971
593724
789002
453914
455584
460338
444653
472991
528213
497313
514796
517048
528699
530370
556762
679816
558515
596226
428530
417511
442968
429330
499026
487938
458615
536214
515994
566736
695124
389208
529074
487910
523021
524865
521785
516784
531247
666819
458224
526022
528993
525511
529078
]
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 (554449 , 542241 , 574295 , 578215 , 584444 , 654914 , 671656 , 553215 , 589142 , 640785 , 607737 , 811643 , 412702 , 464952 , 446536 , 476208 , 452689 , 526996 , 527892 , 529079 , 483638 , 493917 , 503468 , 529034 , 678779 , 678804 , 442026 , 452272 , 628065 , 602971 , 593724 , 789002 , 453914 , 455584 , 460338 , 444653 , 472991 , 528213 , 497313 , 514796 , 517048 , 528699 , 530370 , 556762 , 679816 , 558515 , 596226 , 428530 , 417511 , 442968 , 429330 , 499026 , 487938 , 458615 , 536214 , 515994 , 566736 , 695124 , 389208 , 529074 , 487910 , 523021 , 524865 , 521785 , 516784 , 531247 , 666819 , 458224 , 526022 , 528993 , 525511 , 529078 );
Copy
5
2.77 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
412702
417511
428530
429330
442026
442968
444653
446536
452272
452689
453914
455584
458224
458615
460338
464952
472991
476208
483638
487910
487938
493917
497313
499026
503468
514796
515994
516784
517048
521785
523021
524865
525511
526022
526996
527892
528213
528699
528993
529034
529074
529078
529079
530370
531247
536214
542241
553215
554449
556762
558515
566736
574295
578215
584444
589142
593724
596226
602971
607737
628065
640785
654914
666819
671656
678779
678804
679816
695124
789002
811643
]
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 , 412702 , 417511 , 428530 , 429330 , 442026 , 442968 , 444653 , 446536 , 452272 , 452689 , 453914 , 455584 , 458224 , 458615 , 460338 , 464952 , 472991 , 476208 , 483638 , 487910 , 487938 , 493917 , 497313 , 499026 , 503468 , 514796 , 515994 , 516784 , 517048 , 521785 , 523021 , 524865 , 525511 , 526022 , 526996 , 527892 , 528213 , 528699 , 528993 , 529034 , 529074 , 529078 , 529079 , 530370 , 531247 , 536214 , 542241 , 553215 , 554449 , 556762 , 558515 , 566736 , 574295 , 578215 , 584444 , 589142 , 593724 , 596226 , 602971 , 607737 , 628065 , 640785 , 654914 , 666819 , 671656 , 678779 , 678804 , 679816 , 695124 , 789002 , 811643 );
Copy
6
78.99 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
412702
417511
428530
429330
442026
442968
444653
446536
452272
452689
453914
455584
458224
458615
460338
464952
472991
476208
483638
487910
487938
493917
497313
499026
503468
514796
515994
516784
517048
521785
523021
524865
525511
526022
526996
527892
528213
528699
528993
529034
529074
529078
529079
530370
531247
536214
542241
553215
554449
556762
558515
566736
574295
578215
584444
589142
593724
596226
602971
607737
628065
640785
654914
666819
671656
678779
678804
679816
695124
789002
811643
]
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 , 412702 , 417511 , 428530 , 429330 , 442026 , 442968 , 444653 , 446536 , 452272 , 452689 , 453914 , 455584 , 458224 , 458615 , 460338 , 464952 , 472991 , 476208 , 483638 , 487910 , 487938 , 493917 , 497313 , 499026 , 503468 , 514796 , 515994 , 516784 , 517048 , 521785 , 523021 , 524865 , 525511 , 526022 , 526996 , 527892 , 528213 , 528699 , 528993 , 529034 , 529074 , 529078 , 529079 , 530370 , 531247 , 536214 , 542241 , 553215 , 554449 , 556762 , 558515 , 566736 , 574295 , 578215 , 584444 , 589142 , 593724 , 596226 , 602971 , 607737 , 628065 , 640785 , 654914 , 666819 , 671656 , 678779 , 678804 , 679816 , 695124 , 789002 , 811643 );
Copy