142.62 ms (70.20%)
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
385062
385755
397855
405181
406933
407019
419364
421548
426408
427543
433248
433301
439822
440247
452182
453349
457950
465487
468282
471848
472505
472659
474988
481584
482668
483569
484299
487703
503274
503805
507640
508275
519497
522414
523256
526494
526951
528322
530039
530836
530852
533556
540498
542584
542861
545383
557628
558200
558560
564743
565539
566312
580223
583923
584484
587167
591689
602946
604517
619109
624843
649893
698124
742926
809272
809508
814376
]
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 (385062 , 385755 , 397855 , 405181 , 406933 , 407019 , 419364 , 421548 , 426408 , 427543 , 433248 , 433301 , 439822 , 440247 , 452182 , 453349 , 457950 , 465487 , 468282 , 471848 , 472505 , 472659 , 474988 , 481584 , 482668 , 483569 , 484299 , 487703 , 503274 , 503805 , 507640 , 508275 , 519497 , 522414 , 523256 , 526494 , 526951 , 528322 , 530039 , 530836 , 530852 , 533556 , 540498 , 542584 , 542861 , 545383 , 557628 , 558200 , 558560 , 564743 , 565539 , 566312 , 580223 , 583923 , 584484 , 587167 , 591689 , 602946 , 604517 , 619109 , 624843 , 649893 , 698124 , 742926 , 809272 , 809508 , 814376 );
Copy
13.24 ms (6.51%)
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
407019
385755
452182
457950
503805
542584
385062
814376
530836
528322
472659
542861
474988
540498
624843
468282
397855
433301
426408
482668
439822
433248
421548
530852
481584
591689
809272
471848
507640
557628
530039
533556
545383
565539
580223
405181
503274
583923
526494
472505
584484
440247
419364
453349
602946
483569
427543
566312
809508
526951
619109
564743
558560
558200
649893
742926
406933
519497
522414
587167
604517
698124
465487
508275
484299
523256
487703
]
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 (407019 , 385755 , 452182 , 457950 , 503805 , 542584 , 385062 , 814376 , 530836 , 528322 , 472659 , 542861 , 474988 , 540498 , 624843 , 468282 , 397855 , 433301 , 426408 , 482668 , 439822 , 433248 , 421548 , 530852 , 481584 , 591689 , 809272 , 471848 , 507640 , 557628 , 530039 , 533556 , 545383 , 565539 , 580223 , 405181 , 503274 , 583923 , 526494 , 472505 , 584484 , 440247 , 419364 , 453349 , 602946 , 483569 , 427543 , 566312 , 809508 , 526951 , 619109 , 564743 , 558560 , 558200 , 649893 , 742926 , 406933 , 519497 , 522414 , 587167 , 604517 , 698124 , 465487 , 508275 , 484299 , 523256 , 487703 );
Copy
2.24 ms (1.10%)
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
385062
385755
397855
405181
406933
407019
419364
421548
426408
427543
433248
433301
439822
440247
452182
453349
457950
465487
468282
471848
472505
472659
474988
481584
482668
483569
484299
487703
503274
503805
507640
508275
519497
522414
523256
526494
526951
528322
530039
530836
530852
533556
540498
542584
542861
545383
557628
558200
558560
564743
565539
566312
580223
583923
584484
587167
591689
602946
604517
619109
624843
649893
698124
742926
809272
809508
814376
]
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 (385062 , 385755 , 397855 , 405181 , 406933 , 407019 , 419364 , 421548 , 426408 , 427543 , 433248 , 433301 , 439822 , 440247 , 452182 , 453349 , 457950 , 465487 , 468282 , 471848 , 472505 , 472659 , 474988 , 481584 , 482668 , 483569 , 484299 , 487703 , 503274 , 503805 , 507640 , 508275 , 519497 , 522414 , 523256 , 526494 , 526951 , 528322 , 530039 , 530836 , 530852 , 533556 , 540498 , 542584 , 542861 , 545383 , 557628 , 558200 , 558560 , 564743 , 565539 , 566312 , 580223 , 583923 , 584484 , 587167 , 591689 , 602946 , 604517 , 619109 , 624843 , 649893 , 698124 , 742926 , 809272 , 809508 , 814376 );
Copy