95.14 ms (58.00%)
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
446376
451832
465234
468065
472486
472750
475980
482346
489893
493249
503840
504759
510668
511837
515459
520697
523336
523780
524542
525525
526248
527414
552331
553190
553411
554526
555868
557947
558472
561298
562487
564412
565169
565235
565718
567667
569682
569835
570306
574527
576095
588294
589148
594073
598215
598838
599326
599467
601846
603493
603873
604541
606009
606687
607256
608416
610869
612348
617060
618943
619318
622386
623405
623834
636283
641665
652592
657402
673589
]
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 (446376 , 451832 , 465234 , 468065 , 472486 , 472750 , 475980 , 482346 , 489893 , 493249 , 503840 , 504759 , 510668 , 511837 , 515459 , 520697 , 523336 , 523780 , 524542 , 525525 , 526248 , 527414 , 552331 , 553190 , 553411 , 554526 , 555868 , 557947 , 558472 , 561298 , 562487 , 564412 , 565169 , 565235 , 565718 , 567667 , 569682 , 569835 , 570306 , 574527 , 576095 , 588294 , 589148 , 594073 , 598215 , 598838 , 599326 , 599467 , 601846 , 603493 , 603873 , 604541 , 606009 , 606687 , 607256 , 608416 , 610869 , 612348 , 617060 , 618943 , 619318 , 622386 , 623405 , 623834 , 636283 , 641665 , 652592 , 657402 , 673589 );
Copy
23.59 ms (14.38%)
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
562487
652592
622386
504759
555868
606687
619318
598838
607256
594073
525525
588294
641665
604541
673589
599467
608416
482346
527414
526248
465234
520697
565235
570306
617060
561298
564412
657402
601846
603873
636283
606009
523780
511837
612348
558472
468065
510668
524542
569835
574527
603493
553411
576095
610869
475980
451832
489893
552331
446376
565718
553190
565169
557947
623834
493249
515459
569682
589148
472486
503840
554526
567667
599326
618943
623405
598215
523336
472750
]
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 (562487 , 652592 , 622386 , 504759 , 555868 , 606687 , 619318 , 598838 , 607256 , 594073 , 525525 , 588294 , 641665 , 604541 , 673589 , 599467 , 608416 , 482346 , 527414 , 526248 , 465234 , 520697 , 565235 , 570306 , 617060 , 561298 , 564412 , 657402 , 601846 , 603873 , 636283 , 606009 , 523780 , 511837 , 612348 , 558472 , 468065 , 510668 , 524542 , 569835 , 574527 , 603493 , 553411 , 576095 , 610869 , 475980 , 451832 , 489893 , 552331 , 446376 , 565718 , 553190 , 565169 , 557947 , 623834 , 493249 , 515459 , 569682 , 589148 , 472486 , 503840 , 554526 , 567667 , 599326 , 618943 , 623405 , 598215 , 523336 , 472750 );
Copy
2.34 ms (1.43%)
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
446376
451832
465234
468065
472486
472750
475980
482346
489893
493249
503840
504759
510668
511837
515459
520697
523336
523780
524542
525525
526248
527414
552331
553190
553411
554526
555868
557947
558472
561298
562487
564412
565169
565235
565718
567667
569682
569835
570306
574527
576095
588294
589148
594073
598215
598838
599326
599467
601846
603493
603873
604541
606009
606687
607256
608416
610869
612348
617060
618943
619318
622386
623405
623834
636283
641665
652592
657402
673589
]
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 (446376 , 451832 , 465234 , 468065 , 472486 , 472750 , 475980 , 482346 , 489893 , 493249 , 503840 , 504759 , 510668 , 511837 , 515459 , 520697 , 523336 , 523780 , 524542 , 525525 , 526248 , 527414 , 552331 , 553190 , 553411 , 554526 , 555868 , 557947 , 558472 , 561298 , 562487 , 564412 , 565169 , 565235 , 565718 , 567667 , 569682 , 569835 , 570306 , 574527 , 576095 , 588294 , 589148 , 594073 , 598215 , 598838 , 599326 , 599467 , 601846 , 603493 , 603873 , 604541 , 606009 , 606687 , 607256 , 608416 , 610869 , 612348 , 617060 , 618943 , 619318 , 622386 , 623405 , 623834 , 636283 , 641665 , 652592 , 657402 , 673589 );
Copy