80.37 ms (58.38%)
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
447045
455207
462415
480808
484870
484924
492712
496312
498036
500904
507421
508375
521581
524862
529405
532499
542088
544668
545537
550680
558210
559154
561095
565400
566587
568741
572265
572305
575747
577326
587921
588975
590460
590860
591351
591855
596652
597124
599450
603604
606596
607045
607227
608756
610311
617431
626497
643939
650311
654840
655056
656398
656415
657296
657704
658421
658674
659487
659562
659579
659593
659715
659842
666776
673330
688099
]
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 (447045 , 455207 , 462415 , 480808 , 484870 , 484924 , 492712 , 496312 , 498036 , 500904 , 507421 , 508375 , 521581 , 524862 , 529405 , 532499 , 542088 , 544668 , 545537 , 550680 , 558210 , 559154 , 561095 , 565400 , 566587 , 568741 , 572265 , 572305 , 575747 , 577326 , 587921 , 588975 , 590460 , 590860 , 591351 , 591855 , 596652 , 597124 , 599450 , 603604 , 606596 , 607045 , 607227 , 608756 , 610311 , 617431 , 626497 , 643939 , 650311 , 654840 , 655056 , 656398 , 656415 , 657296 , 657704 , 658421 , 658674 , 659487 , 659562 , 659579 , 659593 , 659715 , 659842 , 666776 , 673330 , 688099 );
Copy
13.49 ms (9.80%)
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
666776
673330
565400
572265
590860
643939
656398
447045
545537
657296
596652
521581
659562
659715
591855
590460
603604
455207
508375
688099
654840
492712
500904
524862
496312
550680
558210
572305
658674
659593
656415
606596
610311
607227
498036
532499
587921
529405
559154
561095
484870
659842
462415
480808
484924
566587
655056
599450
591351
577326
542088
588975
597124
617431
657704
650311
544668
607045
568741
608756
575747
659487
659579
658421
507421
626497
]
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 (666776 , 673330 , 565400 , 572265 , 590860 , 643939 , 656398 , 447045 , 545537 , 657296 , 596652 , 521581 , 659562 , 659715 , 591855 , 590460 , 603604 , 455207 , 508375 , 688099 , 654840 , 492712 , 500904 , 524862 , 496312 , 550680 , 558210 , 572305 , 658674 , 659593 , 656415 , 606596 , 610311 , 607227 , 498036 , 532499 , 587921 , 529405 , 559154 , 561095 , 484870 , 659842 , 462415 , 480808 , 484924 , 566587 , 655056 , 599450 , 591351 , 577326 , 542088 , 588975 , 597124 , 617431 , 657704 , 650311 , 544668 , 607045 , 568741 , 608756 , 575747 , 659487 , 659579 , 658421 , 507421 , 626497 );
Copy
2.25 ms (1.64%)
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
447045
455207
462415
480808
484870
484924
492712
496312
498036
500904
507421
508375
521581
524862
529405
532499
542088
544668
545537
550680
558210
559154
561095
565400
566587
568741
572265
572305
575747
577326
587921
588975
590460
590860
591351
591855
596652
597124
599450
603604
606596
607045
607227
608756
610311
617431
626497
643939
650311
654840
655056
656398
656415
657296
657704
658421
658674
659487
659562
659579
659593
659715
659842
666776
673330
688099
]
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 (447045 , 455207 , 462415 , 480808 , 484870 , 484924 , 492712 , 496312 , 498036 , 500904 , 507421 , 508375 , 521581 , 524862 , 529405 , 532499 , 542088 , 544668 , 545537 , 550680 , 558210 , 559154 , 561095 , 565400 , 566587 , 568741 , 572265 , 572305 , 575747 , 577326 , 587921 , 588975 , 590460 , 590860 , 591351 , 591855 , 596652 , 597124 , 599450 , 603604 , 606596 , 607045 , 607227 , 608756 , 610311 , 617431 , 626497 , 643939 , 650311 , 654840 , 655056 , 656398 , 656415 , 657296 , 657704 , 658421 , 658674 , 659487 , 659562 , 659579 , 659593 , 659715 , 659842 , 666776 , 673330 , 688099 );
Copy