3
14.65 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
558286
471584
482304
477200
566153
663992
594879
387905
467036
484624
524895
454277
678778
678782
678790
467043
526212
559116
484157
573335
483152
529315
487343
498722
526833
463066
623487
518853
459827
678804
531316
381752
461018
466069
429143
504481
678779
462279
616711
462315
484656
516744
485700
477707
485735
518858
540688
504344
498019
514436
561576
566304
524882
528538
467009
480290
462098
549233
525116
506801
601904
464917
521131
522478
522616
580667
486835
523929
478672
549225
529390
549239
]
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 (558286 , 471584 , 482304 , 477200 , 566153 , 663992 , 594879 , 387905 , 467036 , 484624 , 524895 , 454277 , 678778 , 678782 , 678790 , 467043 , 526212 , 559116 , 484157 , 573335 , 483152 , 529315 , 487343 , 498722 , 526833 , 463066 , 623487 , 518853 , 459827 , 678804 , 531316 , 381752 , 461018 , 466069 , 429143 , 504481 , 678779 , 462279 , 616711 , 462315 , 484656 , 516744 , 485700 , 477707 , 485735 , 518858 , 540688 , 504344 , 498019 , 514436 , 561576 , 566304 , 524882 , 528538 , 467009 , 480290 , 462098 , 549233 , 525116 , 506801 , 601904 , 464917 , 521131 , 522478 , 522616 , 580667 , 486835 , 523929 , 478672 , 549225 , 529390 , 549239 );
Copy
4
3.27 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
381752
387905
429143
454277
459827
461018
462098
462279
462315
463066
464917
466069
467009
467036
467043
471584
477200
477707
478672
480290
482304
483152
484157
484624
484656
485700
485735
486835
487343
498019
498722
504344
504481
506801
514436
516744
518853
518858
521131
522478
522616
523929
524882
524895
525116
526212
526833
528538
529315
529390
531316
540688
549225
549233
549239
558286
559116
561576
566153
566304
573335
580667
594879
601904
616711
623487
663992
678778
678779
678782
678790
678804
]
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 (381752 , 387905 , 429143 , 454277 , 459827 , 461018 , 462098 , 462279 , 462315 , 463066 , 464917 , 466069 , 467009 , 467036 , 467043 , 471584 , 477200 , 477707 , 478672 , 480290 , 482304 , 483152 , 484157 , 484624 , 484656 , 485700 , 485735 , 486835 , 487343 , 498019 , 498722 , 504344 , 504481 , 506801 , 514436 , 516744 , 518853 , 518858 , 521131 , 522478 , 522616 , 523929 , 524882 , 524895 , 525116 , 526212 , 526833 , 528538 , 529315 , 529390 , 531316 , 540688 , 549225 , 549233 , 549239 , 558286 , 559116 , 561576 , 566153 , 566304 , 573335 , 580667 , 594879 , 601904 , 616711 , 623487 , 663992 , 678778 , 678779 , 678782 , 678790 , 678804 );
Copy
5
108.22 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
381752
387905
429143
454277
459827
461018
462098
462279
462315
463066
464917
466069
467009
467036
467043
471584
477200
477707
478672
480290
482304
483152
484157
484624
484656
485700
485735
486835
487343
498019
498722
504344
504481
506801
514436
516744
518853
518858
521131
522478
522616
523929
524882
524895
525116
526212
526833
528538
529315
529390
531316
540688
549225
549233
549239
558286
559116
561576
566153
566304
573335
580667
594879
601904
616711
623487
663992
678778
678779
678782
678790
678804
]
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 (381752 , 387905 , 429143 , 454277 , 459827 , 461018 , 462098 , 462279 , 462315 , 463066 , 464917 , 466069 , 467009 , 467036 , 467043 , 471584 , 477200 , 477707 , 478672 , 480290 , 482304 , 483152 , 484157 , 484624 , 484656 , 485700 , 485735 , 486835 , 487343 , 498019 , 498722 , 504344 , 504481 , 506801 , 514436 , 516744 , 518853 , 518858 , 521131 , 522478 , 522616 , 523929 , 524882 , 524895 , 525116 , 526212 , 526833 , 528538 , 529315 , 529390 , 531316 , 540688 , 549225 , 549233 , 549239 , 558286 , 559116 , 561576 , 566153 , 566304 , 573335 , 580667 , 594879 , 601904 , 616711 , 623487 , 663992 , 678778 , 678779 , 678782 , 678790 , 678804 );
Copy