94.97 ms (62.25%)
1
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
404732
407795
420042
429369
445323
445786
446984
450630
460879
464643
469200
473733
478473
478647
479762
483279
494059
495406
495734
501283
503658
508516
512295
513412
514645
519248
525546
526274
526912
530494
530761
532651
533949
536579
537685
541588
545444
552997
565154
566578
578411
579368
580107
581852
586504
593877
601659
603009
621607
637101
637442
640732
642018
650174
650955
651900
669227
672710
672711
675002
679728
716892
727812
]
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 (404732 , 407795 , 420042 , 429369 , 445323 , 445786 , 446984 , 450630 , 460879 , 464643 , 469200 , 473733 , 478473 , 478647 , 479762 , 483279 , 494059 , 495406 , 495734 , 501283 , 503658 , 508516 , 512295 , 513412 , 514645 , 519248 , 525546 , 526274 , 526912 , 530494 , 530761 , 532651 , 533949 , 536579 , 537685 , 541588 , 545444 , 552997 , 565154 , 566578 , 578411 , 579368 , 580107 , 581852 , 586504 , 593877 , 601659 , 603009 , 621607 , 637101 , 637442 , 640732 , 642018 , 650174 , 650955 , 651900 , 669227 , 672710 , 672711 , 675002 , 679728 , 716892 , 727812 );
Copy
12.06 ms (7.90%)
1
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
483279
464643
420042
513412
669227
479762
404732
525546
526274
650955
672711
675002
552997
640732
601659
469200
445323
679728
495734
407795
579368
650174
450630
512295
495406
530761
460879
446984
478473
533949
536579
530494
581852
651900
566578
429369
519248
642018
593877
445786
586504
716892
508516
501283
532651
565154
478647
637442
537685
603009
621607
578411
672710
473733
514645
503658
545444
580107
637101
727812
526912
494059
541588
]
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 (483279 , 464643 , 420042 , 513412 , 669227 , 479762 , 404732 , 525546 , 526274 , 650955 , 672711 , 675002 , 552997 , 640732 , 601659 , 469200 , 445323 , 679728 , 495734 , 407795 , 579368 , 650174 , 450630 , 512295 , 495406 , 530761 , 460879 , 446984 , 478473 , 533949 , 536579 , 530494 , 581852 , 651900 , 566578 , 429369 , 519248 , 642018 , 593877 , 445786 , 586504 , 716892 , 508516 , 501283 , 532651 , 565154 , 478647 , 637442 , 537685 , 603009 , 621607 , 578411 , 672710 , 473733 , 514645 , 503658 , 545444 , 580107 , 637101 , 727812 , 526912 , 494059 , 541588 );
Copy
2.56 ms (1.68%)
1
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
404732
407795
420042
429369
445323
445786
446984
450630
460879
464643
469200
473733
478473
478647
479762
483279
494059
495406
495734
501283
503658
508516
512295
513412
514645
519248
525546
526274
526912
530494
530761
532651
533949
536579
537685
541588
545444
552997
565154
566578
578411
579368
580107
581852
586504
593877
601659
603009
621607
637101
637442
640732
642018
650174
650955
651900
669227
672710
672711
675002
679728
716892
727812
]
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 (404732 , 407795 , 420042 , 429369 , 445323 , 445786 , 446984 , 450630 , 460879 , 464643 , 469200 , 473733 , 478473 , 478647 , 479762 , 483279 , 494059 , 495406 , 495734 , 501283 , 503658 , 508516 , 512295 , 513412 , 514645 , 519248 , 525546 , 526274 , 526912 , 530494 , 530761 , 532651 , 533949 , 536579 , 537685 , 541588 , 545444 , 552997 , 565154 , 566578 , 578411 , 579368 , 580107 , 581852 , 586504 , 593877 , 601659 , 603009 , 621607 , 637101 , 637442 , 640732 , 642018 , 650174 , 650955 , 651900 , 669227 , 672710 , 672711 , 675002 , 679728 , 716892 , 727812 );
Copy