3
14.06 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
442194
454636
517388
505976
504176
511557
565578
485346
569427
527059
414036
482254
465791
512869
505818
624291
484144
492604
452093
580335
420227
454317
551275
473504
467975
792616
553061
620575
492779
568450
525745
414979
471899
452626
603971
585135
563198
428524
496762
523317
524384
546934
480298
584208
488203
716147
477867
506471
512471
584049
411343
500091
476085
589023
563453
533957
554787
414946
429084
542903
557570
726519
514294
538611
486255
527968
556520
458006
465335
467981
622831
431262
]
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 (442194 , 454636 , 517388 , 505976 , 504176 , 511557 , 565578 , 485346 , 569427 , 527059 , 414036 , 482254 , 465791 , 512869 , 505818 , 624291 , 484144 , 492604 , 452093 , 580335 , 420227 , 454317 , 551275 , 473504 , 467975 , 792616 , 553061 , 620575 , 492779 , 568450 , 525745 , 414979 , 471899 , 452626 , 603971 , 585135 , 563198 , 428524 , 496762 , 523317 , 524384 , 546934 , 480298 , 584208 , 488203 , 716147 , 477867 , 506471 , 512471 , 584049 , 411343 , 500091 , 476085 , 589023 , 563453 , 533957 , 554787 , 414946 , 429084 , 542903 , 557570 , 726519 , 514294 , 538611 , 486255 , 527968 , 556520 , 458006 , 465335 , 467981 , 622831 , 431262 );
Copy
4
1.90 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
411343
414036
414946
414979
420227
428524
429084
431262
442194
452093
452626
454317
454636
458006
465335
465791
467975
467981
471899
473504
476085
477867
480298
482254
484144
485346
486255
488203
492604
492779
496762
500091
504176
505818
505976
506471
511557
512471
512869
514294
517388
523317
524384
525745
527059
527968
533957
538611
542903
546934
551275
553061
554787
556520
557570
563198
563453
565578
568450
569427
580335
584049
584208
585135
589023
603971
620575
622831
624291
716147
726519
792616
]
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 (411343 , 414036 , 414946 , 414979 , 420227 , 428524 , 429084 , 431262 , 442194 , 452093 , 452626 , 454317 , 454636 , 458006 , 465335 , 465791 , 467975 , 467981 , 471899 , 473504 , 476085 , 477867 , 480298 , 482254 , 484144 , 485346 , 486255 , 488203 , 492604 , 492779 , 496762 , 500091 , 504176 , 505818 , 505976 , 506471 , 511557 , 512471 , 512869 , 514294 , 517388 , 523317 , 524384 , 525745 , 527059 , 527968 , 533957 , 538611 , 542903 , 546934 , 551275 , 553061 , 554787 , 556520 , 557570 , 563198 , 563453 , 565578 , 568450 , 569427 , 580335 , 584049 , 584208 , 585135 , 589023 , 603971 , 620575 , 622831 , 624291 , 716147 , 726519 , 792616 );
Copy
5
121.95 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
411343
414036
414946
414979
420227
428524
429084
431262
442194
452093
452626
454317
454636
458006
465335
465791
467975
467981
471899
473504
476085
477867
480298
482254
484144
485346
486255
488203
492604
492779
496762
500091
504176
505818
505976
506471
511557
512471
512869
514294
517388
523317
524384
525745
527059
527968
533957
538611
542903
546934
551275
553061
554787
556520
557570
563198
563453
565578
568450
569427
580335
584049
584208
585135
589023
603971
620575
622831
624291
716147
726519
792616
]
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 (411343 , 414036 , 414946 , 414979 , 420227 , 428524 , 429084 , 431262 , 442194 , 452093 , 452626 , 454317 , 454636 , 458006 , 465335 , 465791 , 467975 , 467981 , 471899 , 473504 , 476085 , 477867 , 480298 , 482254 , 484144 , 485346 , 486255 , 488203 , 492604 , 492779 , 496762 , 500091 , 504176 , 505818 , 505976 , 506471 , 511557 , 512471 , 512869 , 514294 , 517388 , 523317 , 524384 , 525745 , 527059 , 527968 , 533957 , 538611 , 542903 , 546934 , 551275 , 553061 , 554787 , 556520 , 557570 , 563198 , 563453 , 565578 , 568450 , 569427 , 580335 , 584049 , 584208 , 585135 , 589023 , 603971 , 620575 , 622831 , 624291 , 716147 , 726519 , 792616 );
Copy