72.62 ms (55.31%)
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
395232
399853
408994
412838
414089
414865
415966
416609
416669
419914
423435
431028
437368
441702
444842
445551
451175
453039
453964
459262
464798
465326
468771
468773
470317
472766
473735
475405
478647
483498
483500
485325
489361
499069
500425
502191
502796
506579
510622
510797
511268
515453
527218
547974
548872
549860
552567
571834
575871
579621
579624
580239
584153
587125
589232
594400
600553
604357
611266
615608
619367
624953
757928
785614
806324
]
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 (395232 , 399853 , 408994 , 412838 , 414089 , 414865 , 415966 , 416609 , 416669 , 419914 , 423435 , 431028 , 437368 , 441702 , 444842 , 445551 , 451175 , 453039 , 453964 , 459262 , 464798 , 465326 , 468771 , 468773 , 470317 , 472766 , 473735 , 475405 , 478647 , 483498 , 483500 , 485325 , 489361 , 499069 , 500425 , 502191 , 502796 , 506579 , 510622 , 510797 , 511268 , 515453 , 527218 , 547974 , 548872 , 549860 , 552567 , 571834 , 575871 , 579621 , 579624 , 580239 , 584153 , 587125 , 589232 , 594400 , 600553 , 604357 , 611266 , 615608 , 619367 , 624953 , 757928 , 785614 , 806324 );
Copy
10.83 ms (8.25%)
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
437368
423435
464798
548872
580239
600553
806324
399853
510797
575871
579621
587125
604357
395232
472766
465326
475405
584153
785614
412838
451175
416609
441702
416669
453964
459262
515453
619367
444842
431028
506579
502796
470317
624953
489361
500425
453039
579624
468773
485325
510622
511268
552567
414089
502191
415966
615608
483500
483498
445551
499069
589232
547974
473735
408994
611266
757928
478647
468771
549860
527218
419914
594400
414865
571834
]
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 (437368 , 423435 , 464798 , 548872 , 580239 , 600553 , 806324 , 399853 , 510797 , 575871 , 579621 , 587125 , 604357 , 395232 , 472766 , 465326 , 475405 , 584153 , 785614 , 412838 , 451175 , 416609 , 441702 , 416669 , 453964 , 459262 , 515453 , 619367 , 444842 , 431028 , 506579 , 502796 , 470317 , 624953 , 489361 , 500425 , 453039 , 579624 , 468773 , 485325 , 510622 , 511268 , 552567 , 414089 , 502191 , 415966 , 615608 , 483500 , 483498 , 445551 , 499069 , 589232 , 547974 , 473735 , 408994 , 611266 , 757928 , 478647 , 468771 , 549860 , 527218 , 419914 , 594400 , 414865 , 571834 );
Copy
2.96 ms (2.26%)
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
395232
399853
408994
412838
414089
414865
415966
416609
416669
419914
423435
431028
437368
441702
444842
445551
451175
453039
453964
459262
464798
465326
468771
468773
470317
472766
473735
475405
478647
483498
483500
485325
489361
499069
500425
502191
502796
506579
510622
510797
511268
515453
527218
547974
548872
549860
552567
571834
575871
579621
579624
580239
584153
587125
589232
594400
600553
604357
611266
615608
619367
624953
757928
785614
806324
]
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 (395232 , 399853 , 408994 , 412838 , 414089 , 414865 , 415966 , 416609 , 416669 , 419914 , 423435 , 431028 , 437368 , 441702 , 444842 , 445551 , 451175 , 453039 , 453964 , 459262 , 464798 , 465326 , 468771 , 468773 , 470317 , 472766 , 473735 , 475405 , 478647 , 483498 , 483500 , 485325 , 489361 , 499069 , 500425 , 502191 , 502796 , 506579 , 510622 , 510797 , 511268 , 515453 , 527218 , 547974 , 548872 , 549860 , 552567 , 571834 , 575871 , 579621 , 579624 , 580239 , 584153 , 587125 , 589232 , 594400 , 600553 , 604357 , 611266 , 615608 , 619367 , 624953 , 757928 , 785614 , 806324 );
Copy