3
12.55 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
502092
489691
500571
507961
386035
416864
433085
431965
447163
465070
465103
569097
417091
475428
463941
540955
484559
510448
523535
523600
485788
525211
528803
395721
397269
438765
468599
569413
652587
620432
401933
411189
452168
470291
503311
515138
520793
484649
424364
584703
471356
483388
489738
524198
495741
508492
689613
609276
519988
512058
452084
466561
652931
653325
663347
600349
612698
441024
431269
484673
556025
614074
598142
589207
598080
533534
585725
625001
479196
]
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 (502092 , 489691 , 500571 , 507961 , 386035 , 416864 , 433085 , 431965 , 447163 , 465070 , 465103 , 569097 , 417091 , 475428 , 463941 , 540955 , 484559 , 510448 , 523535 , 523600 , 485788 , 525211 , 528803 , 395721 , 397269 , 438765 , 468599 , 569413 , 652587 , 620432 , 401933 , 411189 , 452168 , 470291 , 503311 , 515138 , 520793 , 484649 , 424364 , 584703 , 471356 , 483388 , 489738 , 524198 , 495741 , 508492 , 689613 , 609276 , 519988 , 512058 , 452084 , 466561 , 652931 , 653325 , 663347 , 600349 , 612698 , 441024 , 431269 , 484673 , 556025 , 614074 , 598142 , 589207 , 598080 , 533534 , 585725 , 625001 , 479196 );
Copy
4
2.30 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
386035
395721
397269
401933
411189
416864
417091
424364
431269
431965
433085
438765
441024
447163
452084
452168
463941
465070
465103
466561
468599
470291
471356
475428
479196
483388
484559
484649
484673
485788
489691
489738
495741
500571
502092
503311
507961
508492
510448
512058
515138
519988
520793
523535
523600
524198
525211
528803
533534
540955
556025
569097
569413
584703
585725
589207
598080
598142
600349
609276
612698
614074
620432
625001
652587
652931
653325
663347
689613
]
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 (386035 , 395721 , 397269 , 401933 , 411189 , 416864 , 417091 , 424364 , 431269 , 431965 , 433085 , 438765 , 441024 , 447163 , 452084 , 452168 , 463941 , 465070 , 465103 , 466561 , 468599 , 470291 , 471356 , 475428 , 479196 , 483388 , 484559 , 484649 , 484673 , 485788 , 489691 , 489738 , 495741 , 500571 , 502092 , 503311 , 507961 , 508492 , 510448 , 512058 , 515138 , 519988 , 520793 , 523535 , 523600 , 524198 , 525211 , 528803 , 533534 , 540955 , 556025 , 569097 , 569413 , 584703 , 585725 , 589207 , 598080 , 598142 , 600349 , 609276 , 612698 , 614074 , 620432 , 625001 , 652587 , 652931 , 653325 , 663347 , 689613 );
Copy
5
202.34 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
386035
395721
397269
401933
411189
416864
417091
424364
431269
431965
433085
438765
441024
447163
452084
452168
463941
465070
465103
466561
468599
470291
471356
475428
479196
483388
484559
484649
484673
485788
489691
489738
495741
500571
502092
503311
507961
508492
510448
512058
515138
519988
520793
523535
523600
524198
525211
528803
533534
540955
556025
569097
569413
584703
585725
589207
598080
598142
600349
609276
612698
614074
620432
625001
652587
652931
653325
663347
689613
]
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 (386035 , 395721 , 397269 , 401933 , 411189 , 416864 , 417091 , 424364 , 431269 , 431965 , 433085 , 438765 , 441024 , 447163 , 452084 , 452168 , 463941 , 465070 , 465103 , 466561 , 468599 , 470291 , 471356 , 475428 , 479196 , 483388 , 484559 , 484649 , 484673 , 485788 , 489691 , 489738 , 495741 , 500571 , 502092 , 503311 , 507961 , 508492 , 510448 , 512058 , 515138 , 519988 , 520793 , 523535 , 523600 , 524198 , 525211 , 528803 , 533534 , 540955 , 556025 , 569097 , 569413 , 584703 , 585725 , 589207 , 598080 , 598142 , 600349 , 609276 , 612698 , 614074 , 620432 , 625001 , 652587 , 652931 , 653325 , 663347 , 689613 );
Copy