3
13.62 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
589060
481309
512348
395266
415134
478108
582915
630781
494345
580657
555648
468065
816601
506842
527926
528281
551676
403921
522191
604021
459527
492733
474964
578438
417731
422402
470745
495606
507494
552946
622938
612416
620499
586633
531481
417074
463168
500292
487048
496017
590813
494786
527915
432782
569256
575197
518633
519249
520737
417727
598923
527503
483500
483498
540294
455660
448154
584863
506884
593992
545718
526361
553070
527967
]
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 (589060 , 481309 , 512348 , 395266 , 415134 , 478108 , 582915 , 630781 , 494345 , 580657 , 555648 , 468065 , 816601 , 506842 , 527926 , 528281 , 551676 , 403921 , 522191 , 604021 , 459527 , 492733 , 474964 , 578438 , 417731 , 422402 , 470745 , 495606 , 507494 , 552946 , 622938 , 612416 , 620499 , 586633 , 531481 , 417074 , 463168 , 500292 , 487048 , 496017 , 590813 , 494786 , 527915 , 432782 , 569256 , 575197 , 518633 , 519249 , 520737 , 417727 , 598923 , 527503 , 483500 , 483498 , 540294 , 455660 , 448154 , 584863 , 506884 , 593992 , 545718 , 526361 , 553070 , 527967 );
Copy
4
2.79 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
395266
403921
415134
417074
417727
417731
422402
432782
448154
455660
459527
463168
468065
470745
474964
478108
481309
483498
483500
487048
492733
494345
494786
495606
496017
500292
506842
506884
507494
512348
518633
519249
520737
522191
526361
527503
527915
527926
527967
528281
531481
540294
545718
551676
552946
553070
555648
569256
575197
578438
580657
582915
584863
586633
589060
590813
593992
598923
604021
612416
620499
622938
630781
816601
]
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 (395266 , 403921 , 415134 , 417074 , 417727 , 417731 , 422402 , 432782 , 448154 , 455660 , 459527 , 463168 , 468065 , 470745 , 474964 , 478108 , 481309 , 483498 , 483500 , 487048 , 492733 , 494345 , 494786 , 495606 , 496017 , 500292 , 506842 , 506884 , 507494 , 512348 , 518633 , 519249 , 520737 , 522191 , 526361 , 527503 , 527915 , 527926 , 527967 , 528281 , 531481 , 540294 , 545718 , 551676 , 552946 , 553070 , 555648 , 569256 , 575197 , 578438 , 580657 , 582915 , 584863 , 586633 , 589060 , 590813 , 593992 , 598923 , 604021 , 612416 , 620499 , 622938 , 630781 , 816601 );
Copy
5
84.41 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
395266
403921
415134
417074
417727
417731
422402
432782
448154
455660
459527
463168
468065
470745
474964
478108
481309
483498
483500
487048
492733
494345
494786
495606
496017
500292
506842
506884
507494
512348
518633
519249
520737
522191
526361
527503
527915
527926
527967
528281
531481
540294
545718
551676
552946
553070
555648
569256
575197
578438
580657
582915
584863
586633
589060
590813
593992
598923
604021
612416
620499
622938
630781
816601
]
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 (395266 , 403921 , 415134 , 417074 , 417727 , 417731 , 422402 , 432782 , 448154 , 455660 , 459527 , 463168 , 468065 , 470745 , 474964 , 478108 , 481309 , 483498 , 483500 , 487048 , 492733 , 494345 , 494786 , 495606 , 496017 , 500292 , 506842 , 506884 , 507494 , 512348 , 518633 , 519249 , 520737 , 522191 , 526361 , 527503 , 527915 , 527926 , 527967 , 528281 , 531481 , 540294 , 545718 , 551676 , 552946 , 553070 , 555648 , 569256 , 575197 , 578438 , 580657 , 582915 , 584863 , 586633 , 589060 , 590813 , 593992 , 598923 , 604021 , 612416 , 620499 , 622938 , 630781 , 816601 );
Copy