109.60 ms (79.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
450239
453078
466353
467830
468046
473885
486861
486866
491157
495277
506578
507697
509664
521777
535049
539377
540513
543596
555164
559397
568181
583939
584120
588746
591327
595784
597151
600851
601375
602092
602165
605007
605015
605255
605513
612237
619090
636598
648648
649621
651039
653341
661664
667741
679005
728956
732725
732853
732940
732944
732993
733038
733044
738813
741685
743670
743952
750861
750873
750910
752732
758206
775424
791191
]
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 (450239 , 453078 , 466353 , 467830 , 468046 , 473885 , 486861 , 486866 , 491157 , 495277 , 506578 , 507697 , 509664 , 521777 , 535049 , 539377 , 540513 , 543596 , 555164 , 559397 , 568181 , 583939 , 584120 , 588746 , 591327 , 595784 , 597151 , 600851 , 601375 , 602092 , 602165 , 605007 , 605015 , 605255 , 605513 , 612237 , 619090 , 636598 , 648648 , 649621 , 651039 , 653341 , 661664 , 667741 , 679005 , 728956 , 732725 , 732853 , 732940 , 732944 , 732993 , 733038 , 733044 , 738813 , 741685 , 743670 , 743952 , 750861 , 750873 , 750910 , 752732 , 758206 , 775424 , 791191 );
Copy
9.22 ms (6.70%)
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
619090
651039
555164
732940
539377
743670
775424
661664
601375
732853
733038
732725
667741
738813
750910
653341
752732
732944
791191
649621
595784
743952
750873
732993
758206
466353
733044
648648
588746
741685
568181
495277
728956
750861
679005
453078
597151
605007
491157
600851
521777
559397
605015
605255
591327
605513
612237
602165
473885
506578
467830
636598
535049
450239
468046
486866
583939
507697
509664
540513
584120
486861
602092
543596
]
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 (619090 , 651039 , 555164 , 732940 , 539377 , 743670 , 775424 , 661664 , 601375 , 732853 , 733038 , 732725 , 667741 , 738813 , 750910 , 653341 , 752732 , 732944 , 791191 , 649621 , 595784 , 743952 , 750873 , 732993 , 758206 , 466353 , 733044 , 648648 , 588746 , 741685 , 568181 , 495277 , 728956 , 750861 , 679005 , 453078 , 597151 , 605007 , 491157 , 600851 , 521777 , 559397 , 605015 , 605255 , 591327 , 605513 , 612237 , 602165 , 473885 , 506578 , 467830 , 636598 , 535049 , 450239 , 468046 , 486866 , 583939 , 507697 , 509664 , 540513 , 584120 , 486861 , 602092 , 543596 );
Copy
2.83 ms (2.06%)
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
450239
453078
466353
467830
468046
473885
486861
486866
491157
495277
506578
507697
509664
521777
535049
539377
540513
543596
555164
559397
568181
583939
584120
588746
591327
595784
597151
600851
601375
602092
602165
605007
605015
605255
605513
612237
619090
636598
648648
649621
651039
653341
661664
667741
679005
728956
732725
732853
732940
732944
732993
733038
733044
738813
741685
743670
743952
750861
750873
750910
752732
758206
775424
791191
]
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 (450239 , 453078 , 466353 , 467830 , 468046 , 473885 , 486861 , 486866 , 491157 , 495277 , 506578 , 507697 , 509664 , 521777 , 535049 , 539377 , 540513 , 543596 , 555164 , 559397 , 568181 , 583939 , 584120 , 588746 , 591327 , 595784 , 597151 , 600851 , 601375 , 602092 , 602165 , 605007 , 605015 , 605255 , 605513 , 612237 , 619090 , 636598 , 648648 , 649621 , 651039 , 653341 , 661664 , 667741 , 679005 , 728956 , 732725 , 732853 , 732940 , 732944 , 732993 , 733038 , 733044 , 738813 , 741685 , 743670 , 743952 , 750861 , 750873 , 750910 , 752732 , 758206 , 775424 , 791191 );
Copy