87.78 ms (27.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
435369
439724
442615
442617
442618
442619
442620
442643
442648
442652
457676
457730
475673
475688
483876
506278
507666
507742
511366
515817
518094
521127
524506
536030
537264
538506
549865
555999
560048
587877
592482
593183
602841
605222
606081
608668
609047
609617
610095
613300
626216
629445
629481
643517
653244
655098
655406
655665
655693
655728
655744
656339
678249
701331
709754
710386
737382
744395
758667
781352
793917
803522
812520
824312
]
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 (435369 , 439724 , 442615 , 442617 , 442618 , 442619 , 442620 , 442643 , 442648 , 442652 , 457676 , 457730 , 475673 , 475688 , 483876 , 506278 , 507666 , 507742 , 511366 , 515817 , 518094 , 521127 , 524506 , 536030 , 537264 , 538506 , 549865 , 555999 , 560048 , 587877 , 592482 , 593183 , 602841 , 605222 , 606081 , 608668 , 609047 , 609617 , 610095 , 613300 , 626216 , 629445 , 629481 , 643517 , 653244 , 655098 , 655406 , 655665 , 655693 , 655728 , 655744 , 656339 , 678249 , 701331 , 709754 , 710386 , 737382 , 744395 , 758667 , 781352 , 793917 , 803522 , 812520 , 824312 );
Copy
11.41 ms (3.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
655744
824312
538506
655098
656339
610095
701331
678249
593183
812520
442620
793917
737382
442615
655728
608668
781352
655665
655406
710386
592482
609047
744395
442618
457730
483876
537264
536030
549865
709754
606081
629481
609617
803522
475688
442617
442648
518094
442619
475673
626216
515817
442643
605222
587877
758667
435369
442652
524506
643517
439724
507742
521127
560048
655693
506278
507666
511366
602841
555999
653244
613300
629445
457676
]
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 (655744 , 824312 , 538506 , 655098 , 656339 , 610095 , 701331 , 678249 , 593183 , 812520 , 442620 , 793917 , 737382 , 442615 , 655728 , 608668 , 781352 , 655665 , 655406 , 710386 , 592482 , 609047 , 744395 , 442618 , 457730 , 483876 , 537264 , 536030 , 549865 , 709754 , 606081 , 629481 , 609617 , 803522 , 475688 , 442617 , 442648 , 518094 , 442619 , 475673 , 626216 , 515817 , 442643 , 605222 , 587877 , 758667 , 435369 , 442652 , 524506 , 643517 , 439724 , 507742 , 521127 , 560048 , 655693 , 506278 , 507666 , 511366 , 602841 , 555999 , 653244 , 613300 , 629445 , 457676 );
Copy
3.99 ms (1.23%)
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
435369
439724
442615
442617
442618
442619
442620
442643
442648
442652
457676
457730
475673
475688
483876
506278
507666
507742
511366
515817
518094
521127
524506
536030
537264
538506
549865
555999
560048
587877
592482
593183
602841
605222
606081
608668
609047
609617
610095
613300
626216
629445
629481
643517
653244
655098
655406
655665
655693
655728
655744
656339
678249
701331
709754
710386
737382
744395
758667
781352
793917
803522
812520
824312
]
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 (435369 , 439724 , 442615 , 442617 , 442618 , 442619 , 442620 , 442643 , 442648 , 442652 , 457676 , 457730 , 475673 , 475688 , 483876 , 506278 , 507666 , 507742 , 511366 , 515817 , 518094 , 521127 , 524506 , 536030 , 537264 , 538506 , 549865 , 555999 , 560048 , 587877 , 592482 , 593183 , 602841 , 605222 , 606081 , 608668 , 609047 , 609617 , 610095 , 613300 , 626216 , 629445 , 629481 , 643517 , 653244 , 655098 , 655406 , 655665 , 655693 , 655728 , 655744 , 656339 , 678249 , 701331 , 709754 , 710386 , 737382 , 744395 , 758667 , 781352 , 793917 , 803522 , 812520 , 824312 );
Copy