91.36 ms (62.50%)
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
397269
403909
409995
416867
422711
434001
435398
448644
452760
453358
458923
463919
463957
464265
471861
472918
482088
482174
486130
487858
489607
491644
491649
491650
497953
502889
506659
508199
509940
510347
512495
518470
518992
523280
527495
529846
530757
530759
532255
532843
532984
545804
548257
550629
555530
564462
576036
578408
580727
584779
588818
589484
598806
612399
617165
623203
632563
633114
647850
659215
664583
710524
716030
790036
790754
793448
]
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 (397269 , 403909 , 409995 , 416867 , 422711 , 434001 , 435398 , 448644 , 452760 , 453358 , 458923 , 463919 , 463957 , 464265 , 471861 , 472918 , 482088 , 482174 , 486130 , 487858 , 489607 , 491644 , 491649 , 491650 , 497953 , 502889 , 506659 , 508199 , 509940 , 510347 , 512495 , 518470 , 518992 , 523280 , 527495 , 529846 , 530757 , 530759 , 532255 , 532843 , 532984 , 545804 , 548257 , 550629 , 555530 , 564462 , 576036 , 578408 , 580727 , 584779 , 588818 , 589484 , 598806 , 612399 , 617165 , 623203 , 632563 , 633114 , 647850 , 659215 , 664583 , 710524 , 716030 , 790036 , 790754 , 793448 );
Copy
14.14 ms (9.68%)
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
464265
422711
472918
512495
506659
527495
532843
623203
409995
530759
580727
545804
647850
659215
578408
790754
716030
790036
491649
491644
502889
509940
564462
793448
489607
458923
463919
518470
471861
530757
529846
550629
633114
416867
510347
487858
518992
576036
452760
491650
486130
508199
482174
555530
664583
589484
612399
588818
435398
598806
453358
523280
632563
532984
548257
497953
397269
584779
710524
434001
532255
617165
463957
448644
403909
482088
]
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 (464265 , 422711 , 472918 , 512495 , 506659 , 527495 , 532843 , 623203 , 409995 , 530759 , 580727 , 545804 , 647850 , 659215 , 578408 , 790754 , 716030 , 790036 , 491649 , 491644 , 502889 , 509940 , 564462 , 793448 , 489607 , 458923 , 463919 , 518470 , 471861 , 530757 , 529846 , 550629 , 633114 , 416867 , 510347 , 487858 , 518992 , 576036 , 452760 , 491650 , 486130 , 508199 , 482174 , 555530 , 664583 , 589484 , 612399 , 588818 , 435398 , 598806 , 453358 , 523280 , 632563 , 532984 , 548257 , 497953 , 397269 , 584779 , 710524 , 434001 , 532255 , 617165 , 463957 , 448644 , 403909 , 482088 );
Copy
2.72 ms (1.86%)
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
397269
403909
409995
416867
422711
434001
435398
448644
452760
453358
458923
463919
463957
464265
471861
472918
482088
482174
486130
487858
489607
491644
491649
491650
497953
502889
506659
508199
509940
510347
512495
518470
518992
523280
527495
529846
530757
530759
532255
532843
532984
545804
548257
550629
555530
564462
576036
578408
580727
584779
588818
589484
598806
612399
617165
623203
632563
633114
647850
659215
664583
710524
716030
790036
790754
793448
]
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 (397269 , 403909 , 409995 , 416867 , 422711 , 434001 , 435398 , 448644 , 452760 , 453358 , 458923 , 463919 , 463957 , 464265 , 471861 , 472918 , 482088 , 482174 , 486130 , 487858 , 489607 , 491644 , 491649 , 491650 , 497953 , 502889 , 506659 , 508199 , 509940 , 510347 , 512495 , 518470 , 518992 , 523280 , 527495 , 529846 , 530757 , 530759 , 532255 , 532843 , 532984 , 545804 , 548257 , 550629 , 555530 , 564462 , 576036 , 578408 , 580727 , 584779 , 588818 , 589484 , 598806 , 612399 , 617165 , 623203 , 632563 , 633114 , 647850 , 659215 , 664583 , 710524 , 716030 , 790036 , 790754 , 793448 );
Copy