136.22 ms (75.76%)
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
89346
410664
414157
414342
418102
426301
434293
434324
434346
434349
434376
443090
445398
448570
453162
454802
455006
467872
467875
467878
467882
467893
468072
489424
495126
497665
497693
498319
500288
500324
507243
510816
511372
511379
513568
520850
531823
534546
536459
536466
538992
540911
545305
545312
545457
550925
559453
559910
566761
568257
568268
571246
583698
584301
586760
588466
588748
592396
592500
615357
617165
620611
648716
735128
752663
752680
761430
796071
817671
818825
]
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 (89346 , 410664 , 414157 , 414342 , 418102 , 426301 , 434293 , 434324 , 434346 , 434349 , 434376 , 443090 , 445398 , 448570 , 453162 , 454802 , 455006 , 467872 , 467875 , 467878 , 467882 , 467893 , 468072 , 489424 , 495126 , 497665 , 497693 , 498319 , 500288 , 500324 , 507243 , 510816 , 511372 , 511379 , 513568 , 520850 , 531823 , 534546 , 536459 , 536466 , 538992 , 540911 , 545305 , 545312 , 545457 , 550925 , 559453 , 559910 , 566761 , 568257 , 568268 , 571246 , 583698 , 584301 , 586760 , 588466 , 588748 , 592396 , 592500 , 615357 , 617165 , 620611 , 648716 , 735128 , 752663 , 752680 , 761430 , 796071 , 817671 , 818825 );
Copy
11.96 ms (6.65%)
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
410664
507243
817671
615357
588748
568257
568268
583698
796071
752680
500324
531823
497693
586760
761430
89346
559910
818825
545312
735128
538992
588466
592396
434349
648716
434324
498319
550925
752663
455006
534546
545457
540911
620611
467872
426301
545305
500288
592500
434346
566761
571246
495126
467875
536459
536466
584301
453162
414342
445398
434293
467882
467893
448570
513568
414157
434376
511372
511379
443090
559453
467878
418102
468072
497665
454802
510816
489424
520850
617165
]
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 (410664 , 507243 , 817671 , 615357 , 588748 , 568257 , 568268 , 583698 , 796071 , 752680 , 500324 , 531823 , 497693 , 586760 , 761430 , 89346 , 559910 , 818825 , 545312 , 735128 , 538992 , 588466 , 592396 , 434349 , 648716 , 434324 , 498319 , 550925 , 752663 , 455006 , 534546 , 545457 , 540911 , 620611 , 467872 , 426301 , 545305 , 500288 , 592500 , 434346 , 566761 , 571246 , 495126 , 467875 , 536459 , 536466 , 584301 , 453162 , 414342 , 445398 , 434293 , 467882 , 467893 , 448570 , 513568 , 414157 , 434376 , 511372 , 511379 , 443090 , 559453 , 467878 , 418102 , 468072 , 497665 , 454802 , 510816 , 489424 , 520850 , 617165 );
Copy
2.77 ms (1.54%)
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
89346
410664
414157
414342
418102
426301
434293
434324
434346
434349
434376
443090
445398
448570
453162
454802
455006
467872
467875
467878
467882
467893
468072
489424
495126
497665
497693
498319
500288
500324
507243
510816
511372
511379
513568
520850
531823
534546
536459
536466
538992
540911
545305
545312
545457
550925
559453
559910
566761
568257
568268
571246
583698
584301
586760
588466
588748
592396
592500
615357
617165
620611
648716
735128
752663
752680
761430
796071
817671
818825
]
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 (89346 , 410664 , 414157 , 414342 , 418102 , 426301 , 434293 , 434324 , 434346 , 434349 , 434376 , 443090 , 445398 , 448570 , 453162 , 454802 , 455006 , 467872 , 467875 , 467878 , 467882 , 467893 , 468072 , 489424 , 495126 , 497665 , 497693 , 498319 , 500288 , 500324 , 507243 , 510816 , 511372 , 511379 , 513568 , 520850 , 531823 , 534546 , 536459 , 536466 , 538992 , 540911 , 545305 , 545312 , 545457 , 550925 , 559453 , 559910 , 566761 , 568257 , 568268 , 571246 , 583698 , 584301 , 586760 , 588466 , 588748 , 592396 , 592500 , 615357 , 617165 , 620611 , 648716 , 735128 , 752663 , 752680 , 761430 , 796071 , 817671 , 818825 );
Copy