3
13.91 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
716811
617633
626885
424460
453409
424660
444238
468941
443745
471046
524029
519942
484365
526757
464996
494684
459474
429862
506057
509573
518613
466982
525359
582234
480059
466069
485700
464566
486835
526736
556797
466885
485703
524882
390045
468216
457577
555055
444918
427364
429892
428103
468630
451957
524879
549233
543579
561082
445641
489950
446307
480480
444916
560385
477712
485454
549246
591314
612434
515723
494985
466989
549225
]
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 (716811 , 617633 , 626885 , 424460 , 453409 , 424660 , 444238 , 468941 , 443745 , 471046 , 524029 , 519942 , 484365 , 526757 , 464996 , 494684 , 459474 , 429862 , 506057 , 509573 , 518613 , 466982 , 525359 , 582234 , 480059 , 466069 , 485700 , 464566 , 486835 , 526736 , 556797 , 466885 , 485703 , 524882 , 390045 , 468216 , 457577 , 555055 , 444918 , 427364 , 429892 , 428103 , 468630 , 451957 , 524879 , 549233 , 543579 , 561082 , 445641 , 489950 , 446307 , 480480 , 444916 , 560385 , 477712 , 485454 , 549246 , 591314 , 612434 , 515723 , 494985 , 466989 , 549225 );
Copy
4
2.41 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
390045
424460
424660
427364
428103
429862
429892
443745
444238
444916
444918
445641
446307
451957
453409
457577
459474
464566
464996
466069
466885
466982
466989
468216
468630
468941
471046
477712
480059
480480
484365
485454
485700
485703
486835
489950
494684
494985
506057
509573
515723
518613
519942
524029
524879
524882
525359
526736
526757
543579
549225
549233
549246
555055
556797
560385
561082
582234
591314
612434
617633
626885
716811
]
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 (390045 , 424460 , 424660 , 427364 , 428103 , 429862 , 429892 , 443745 , 444238 , 444916 , 444918 , 445641 , 446307 , 451957 , 453409 , 457577 , 459474 , 464566 , 464996 , 466069 , 466885 , 466982 , 466989 , 468216 , 468630 , 468941 , 471046 , 477712 , 480059 , 480480 , 484365 , 485454 , 485700 , 485703 , 486835 , 489950 , 494684 , 494985 , 506057 , 509573 , 515723 , 518613 , 519942 , 524029 , 524879 , 524882 , 525359 , 526736 , 526757 , 543579 , 549225 , 549233 , 549246 , 555055 , 556797 , 560385 , 561082 , 582234 , 591314 , 612434 , 617633 , 626885 , 716811 );
Copy
5
72.82 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
390045
424460
424660
427364
428103
429862
429892
443745
444238
444916
444918
445641
446307
451957
453409
457577
459474
464566
464996
466069
466885
466982
466989
468216
468630
468941
471046
477712
480059
480480
484365
485454
485700
485703
486835
489950
494684
494985
506057
509573
515723
518613
519942
524029
524879
524882
525359
526736
526757
543579
549225
549233
549246
555055
556797
560385
561082
582234
591314
612434
617633
626885
716811
]
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 (390045 , 424460 , 424660 , 427364 , 428103 , 429862 , 429892 , 443745 , 444238 , 444916 , 444918 , 445641 , 446307 , 451957 , 453409 , 457577 , 459474 , 464566 , 464996 , 466069 , 466885 , 466982 , 466989 , 468216 , 468630 , 468941 , 471046 , 477712 , 480059 , 480480 , 484365 , 485454 , 485700 , 485703 , 486835 , 489950 , 494684 , 494985 , 506057 , 509573 , 515723 , 518613 , 519942 , 524029 , 524879 , 524882 , 525359 , 526736 , 526757 , 543579 , 549225 , 549233 , 549246 , 555055 , 556797 , 560385 , 561082 , 582234 , 591314 , 612434 , 617633 , 626885 , 716811 );
Copy