83.21 ms (15.24%)
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
402012
415387
416181
417897
419674
426092
434782
435550
443093
445035
446430
446745
452680
456837
457903
458302
462207
465745
467155
468703
475410
475824
477092
477789
481834
487852
488608
489488
492555
495631
500767
501393
504603
504718
505033
511368
511637
514704
517057
519349
520572
520686
522894
524627
524752
530935
532958
541241
556484
556645
561364
565169
567134
572198
575756
579318
587211
591385
600496
612455
620203
621937
628175
649123
753077
757078
779647
]
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 (402012 , 415387 , 416181 , 417897 , 419674 , 426092 , 434782 , 435550 , 443093 , 445035 , 446430 , 446745 , 452680 , 456837 , 457903 , 458302 , 462207 , 465745 , 467155 , 468703 , 475410 , 475824 , 477092 , 477789 , 481834 , 487852 , 488608 , 489488 , 492555 , 495631 , 500767 , 501393 , 504603 , 504718 , 505033 , 511368 , 511637 , 514704 , 517057 , 519349 , 520572 , 520686 , 522894 , 524627 , 524752 , 530935 , 532958 , 541241 , 556484 , 556645 , 561364 , 565169 , 567134 , 572198 , 575756 , 579318 , 587211 , 591385 , 600496 , 612455 , 620203 , 621937 , 628175 , 649123 , 753077 , 757078 , 779647 );
Copy
13.74 ms (2.52%)
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
753077
757078
445035
426092
458302
501393
489488
504603
505033
511637
416181
452680
457903
477092
456837
468703
511368
519349
532958
475824
556645
561364
587211
621937
779647
402012
462207
434782
446430
435550
488608
517057
520686
524627
522894
443093
487852
514704
541241
556484
572198
579318
591385
600496
419674
415387
417897
481834
524752
477789
500767
575756
567134
475410
465745
520572
495631
530935
628175
467155
446745
649123
620203
565169
612455
504718
492555
]
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 (753077 , 757078 , 445035 , 426092 , 458302 , 501393 , 489488 , 504603 , 505033 , 511637 , 416181 , 452680 , 457903 , 477092 , 456837 , 468703 , 511368 , 519349 , 532958 , 475824 , 556645 , 561364 , 587211 , 621937 , 779647 , 402012 , 462207 , 434782 , 446430 , 435550 , 488608 , 517057 , 520686 , 524627 , 522894 , 443093 , 487852 , 514704 , 541241 , 556484 , 572198 , 579318 , 591385 , 600496 , 419674 , 415387 , 417897 , 481834 , 524752 , 477789 , 500767 , 575756 , 567134 , 475410 , 465745 , 520572 , 495631 , 530935 , 628175 , 467155 , 446745 , 649123 , 620203 , 565169 , 612455 , 504718 , 492555 );
Copy
3.01 ms (0.55%)
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
402012
415387
416181
417897
419674
426092
434782
435550
443093
445035
446430
446745
452680
456837
457903
458302
462207
465745
467155
468703
475410
475824
477092
477789
481834
487852
488608
489488
492555
495631
500767
501393
504603
504718
505033
511368
511637
514704
517057
519349
520572
520686
522894
524627
524752
530935
532958
541241
556484
556645
561364
565169
567134
572198
575756
579318
587211
591385
600496
612455
620203
621937
628175
649123
753077
757078
779647
]
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 (402012 , 415387 , 416181 , 417897 , 419674 , 426092 , 434782 , 435550 , 443093 , 445035 , 446430 , 446745 , 452680 , 456837 , 457903 , 458302 , 462207 , 465745 , 467155 , 468703 , 475410 , 475824 , 477092 , 477789 , 481834 , 487852 , 488608 , 489488 , 492555 , 495631 , 500767 , 501393 , 504603 , 504718 , 505033 , 511368 , 511637 , 514704 , 517057 , 519349 , 520572 , 520686 , 522894 , 524627 , 524752 , 530935 , 532958 , 541241 , 556484 , 556645 , 561364 , 565169 , 567134 , 572198 , 575756 , 579318 , 587211 , 591385 , 600496 , 612455 , 620203 , 621937 , 628175 , 649123 , 753077 , 757078 , 779647 );
Copy