76.38 ms (44.59%)
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
337889
414135
417830
417832
417841
417930
419319
425547
444831
445306
447035
447749
453948
460318
462926
468887
473189
486250
486275
494328
503720
513215
514656
516693
517843
520355
521515
525042
525085
527199
528326
528702
530605
533096
533790
535052
536397
544858
544860
589989
626282
645255
693953
707477
717088
718191
718223
720104
720297
724758
735028
740089
740900
750127
765739
776281
795836
799358
804496
807516
809784
810331
810423
817265
824884
]
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 (337889 , 414135 , 417830 , 417832 , 417841 , 417930 , 419319 , 425547 , 444831 , 445306 , 447035 , 447749 , 453948 , 460318 , 462926 , 468887 , 473189 , 486250 , 486275 , 494328 , 503720 , 513215 , 514656 , 516693 , 517843 , 520355 , 521515 , 525042 , 525085 , 527199 , 528326 , 528702 , 530605 , 533096 , 533790 , 535052 , 536397 , 544858 , 544860 , 589989 , 626282 , 645255 , 693953 , 707477 , 717088 , 718191 , 718223 , 720104 , 720297 , 724758 , 735028 , 740089 , 740900 , 750127 , 765739 , 776281 , 795836 , 799358 , 804496 , 807516 , 809784 , 810331 , 810423 , 817265 , 824884 );
Copy
10.89 ms (6.36%)
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
527199
765739
693953
645255
817265
535052
750127
804496
799358
718191
740089
530605
824884
720297
776281
809784
735028
795836
425547
717088
810423
337889
589989
626282
720104
810331
533790
718223
460318
533096
417930
807516
740900
514656
444831
707477
447749
525042
417832
417830
417841
453948
525085
414135
468887
419319
447035
516693
544860
544858
494328
724758
445306
503720
486275
462926
473189
486250
528702
517843
528326
536397
520355
521515
513215
]
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 (527199 , 765739 , 693953 , 645255 , 817265 , 535052 , 750127 , 804496 , 799358 , 718191 , 740089 , 530605 , 824884 , 720297 , 776281 , 809784 , 735028 , 795836 , 425547 , 717088 , 810423 , 337889 , 589989 , 626282 , 720104 , 810331 , 533790 , 718223 , 460318 , 533096 , 417930 , 807516 , 740900 , 514656 , 444831 , 707477 , 447749 , 525042 , 417832 , 417830 , 417841 , 453948 , 525085 , 414135 , 468887 , 419319 , 447035 , 516693 , 544860 , 544858 , 494328 , 724758 , 445306 , 503720 , 486275 , 462926 , 473189 , 486250 , 528702 , 517843 , 528326 , 536397 , 520355 , 521515 , 513215 );
Copy
3.71 ms (2.16%)
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
337889
414135
417830
417832
417841
417930
419319
425547
444831
445306
447035
447749
453948
460318
462926
468887
473189
486250
486275
494328
503720
513215
514656
516693
517843
520355
521515
525042
525085
527199
528326
528702
530605
533096
533790
535052
536397
544858
544860
589989
626282
645255
693953
707477
717088
718191
718223
720104
720297
724758
735028
740089
740900
750127
765739
776281
795836
799358
804496
807516
809784
810331
810423
817265
824884
]
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 (337889 , 414135 , 417830 , 417832 , 417841 , 417930 , 419319 , 425547 , 444831 , 445306 , 447035 , 447749 , 453948 , 460318 , 462926 , 468887 , 473189 , 486250 , 486275 , 494328 , 503720 , 513215 , 514656 , 516693 , 517843 , 520355 , 521515 , 525042 , 525085 , 527199 , 528326 , 528702 , 530605 , 533096 , 533790 , 535052 , 536397 , 544858 , 544860 , 589989 , 626282 , 645255 , 693953 , 707477 , 717088 , 718191 , 718223 , 720104 , 720297 , 724758 , 735028 , 740089 , 740900 , 750127 , 765739 , 776281 , 795836 , 799358 , 804496 , 807516 , 809784 , 810331 , 810423 , 817265 , 824884 );
Copy