74.41 ms (68.68%)
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
385782
386052
393534
393537
400614
411428
411447
411451
413196
419988
420878
426685
429588
434301
445024
455045
460986
460997
462618
462623
465633
477883
477923
478721
493814
494400
495629
498664
510714
525207
530492
530690
530694
532692
534707
549426
556786
556839
561415
573793
574824
576104
581770
591544
600261
601358
601537
601569
616515
620900
632028
633089
646935
660316
666428
696460
719274
732059
752532
768786
769760
778785
787309
792419
799604
]
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 (385782 , 386052 , 393534 , 393537 , 400614 , 411428 , 411447 , 411451 , 413196 , 419988 , 420878 , 426685 , 429588 , 434301 , 445024 , 455045 , 460986 , 460997 , 462618 , 462623 , 465633 , 477883 , 477923 , 478721 , 493814 , 494400 , 495629 , 498664 , 510714 , 525207 , 530492 , 530690 , 530694 , 532692 , 534707 , 549426 , 556786 , 556839 , 561415 , 573793 , 574824 , 576104 , 581770 , 591544 , 600261 , 601358 , 601537 , 601569 , 616515 , 620900 , 632028 , 633089 , 646935 , 660316 , 666428 , 696460 , 719274 , 732059 , 752532 , 768786 , 769760 , 778785 , 787309 , 792419 , 799604 );
Copy
16.80 ms (15.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
732059
719274
768786
633089
799604
600261
660316
696460
549426
666428
591544
477883
574824
510714
400614
792419
532692
616515
498664
530690
632028
385782
413196
752532
411447
386052
445024
769760
411428
493814
393534
411451
393537
455045
429588
478721
460997
465633
573793
581770
778785
426685
460986
477923
494400
576104
561415
556786
601358
787309
434301
462623
462618
495629
525207
534707
556839
601569
620900
420878
530492
646935
419988
530694
601537
]
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 (732059 , 719274 , 768786 , 633089 , 799604 , 600261 , 660316 , 696460 , 549426 , 666428 , 591544 , 477883 , 574824 , 510714 , 400614 , 792419 , 532692 , 616515 , 498664 , 530690 , 632028 , 385782 , 413196 , 752532 , 411447 , 386052 , 445024 , 769760 , 411428 , 493814 , 393534 , 411451 , 393537 , 455045 , 429588 , 478721 , 460997 , 465633 , 573793 , 581770 , 778785 , 426685 , 460986 , 477923 , 494400 , 576104 , 561415 , 556786 , 601358 , 787309 , 434301 , 462623 , 462618 , 495629 , 525207 , 534707 , 556839 , 601569 , 620900 , 420878 , 530492 , 646935 , 419988 , 530694 , 601537 );
Copy
2.67 ms (2.47%)
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
385782
386052
393534
393537
400614
411428
411447
411451
413196
419988
420878
426685
429588
434301
445024
455045
460986
460997
462618
462623
465633
477883
477923
478721
493814
494400
495629
498664
510714
525207
530492
530690
530694
532692
534707
549426
556786
556839
561415
573793
574824
576104
581770
591544
600261
601358
601537
601569
616515
620900
632028
633089
646935
660316
666428
696460
719274
732059
752532
768786
769760
778785
787309
792419
799604
]
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 (385782 , 386052 , 393534 , 393537 , 400614 , 411428 , 411447 , 411451 , 413196 , 419988 , 420878 , 426685 , 429588 , 434301 , 445024 , 455045 , 460986 , 460997 , 462618 , 462623 , 465633 , 477883 , 477923 , 478721 , 493814 , 494400 , 495629 , 498664 , 510714 , 525207 , 530492 , 530690 , 530694 , 532692 , 534707 , 549426 , 556786 , 556839 , 561415 , 573793 , 574824 , 576104 , 581770 , 591544 , 600261 , 601358 , 601537 , 601569 , 616515 , 620900 , 632028 , 633089 , 646935 , 660316 , 666428 , 696460 , 719274 , 732059 , 752532 , 768786 , 769760 , 778785 , 787309 , 792419 , 799604 );
Copy