3
9.96 ms
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
386924
718349
813779
533183
641337
418997
718277
619378
772878
561595
589457
534667
635186
596529
782472
533260
563115
782432
728474
529193
564719
780661
531464
803128
539417
788688
781746
28625
817264
704867
713617
715209
645838
688255
822553
756343
768380
446316
527887
559604
826910
477763
177455
390173
443183
822093
823148
455326
464443
609268
404468
448646
513880
525774
580198
559993
581708
558339
622387
431231
516801
516916
387258
580344
590423
466916
495622
495317
388219
508912
594886
604003
560188
]
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 (386924 , 718349 , 813779 , 533183 , 641337 , 418997 , 718277 , 619378 , 772878 , 561595 , 589457 , 534667 , 635186 , 596529 , 782472 , 533260 , 563115 , 782432 , 728474 , 529193 , 564719 , 780661 , 531464 , 803128 , 539417 , 788688 , 781746 , 28625 , 817264 , 704867 , 713617 , 715209 , 645838 , 688255 , 822553 , 756343 , 768380 , 446316 , 527887 , 559604 , 826910 , 477763 , 177455 , 390173 , 443183 , 822093 , 823148 , 455326 , 464443 , 609268 , 404468 , 448646 , 513880 , 525774 , 580198 , 559993 , 581708 , 558339 , 622387 , 431231 , 516801 , 516916 , 387258 , 580344 , 590423 , 466916 , 495622 , 495317 , 388219 , 508912 , 594886 , 604003 , 560188 );
Copy
4
2.71 ms
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
28625
177455
386924
387258
388219
390173
404468
418997
431231
443183
446316
448646
455326
464443
466916
477763
495317
495622
508912
513880
516801
516916
525774
527887
529193
531464
533183
533260
534667
539417
558339
559604
559993
560188
561595
563115
564719
580198
580344
581708
589457
590423
594886
596529
604003
609268
619378
622387
635186
641337
645838
688255
704867
713617
715209
718277
718349
728474
756343
768380
772878
780661
781746
782432
782472
788688
803128
813779
817264
822093
822553
823148
826910
]
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 (28625 , 177455 , 386924 , 387258 , 388219 , 390173 , 404468 , 418997 , 431231 , 443183 , 446316 , 448646 , 455326 , 464443 , 466916 , 477763 , 495317 , 495622 , 508912 , 513880 , 516801 , 516916 , 525774 , 527887 , 529193 , 531464 , 533183 , 533260 , 534667 , 539417 , 558339 , 559604 , 559993 , 560188 , 561595 , 563115 , 564719 , 580198 , 580344 , 581708 , 589457 , 590423 , 594886 , 596529 , 604003 , 609268 , 619378 , 622387 , 635186 , 641337 , 645838 , 688255 , 704867 , 713617 , 715209 , 718277 , 718349 , 728474 , 756343 , 768380 , 772878 , 780661 , 781746 , 782432 , 782472 , 788688 , 803128 , 813779 , 817264 , 822093 , 822553 , 823148 , 826910 );
Copy
5
93.41 ms
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
28625
177455
386924
387258
388219
390173
404468
418997
431231
443183
446316
448646
455326
464443
466916
477763
495317
495622
508912
513880
516801
516916
525774
527887
529193
531464
533183
533260
534667
539417
558339
559604
559993
560188
561595
563115
564719
580198
580344
581708
589457
590423
594886
596529
604003
609268
619378
622387
635186
641337
645838
688255
704867
713617
715209
718277
718349
728474
756343
768380
772878
780661
781746
782432
782472
788688
803128
813779
817264
822093
822553
823148
826910
]
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 (28625 , 177455 , 386924 , 387258 , 388219 , 390173 , 404468 , 418997 , 431231 , 443183 , 446316 , 448646 , 455326 , 464443 , 466916 , 477763 , 495317 , 495622 , 508912 , 513880 , 516801 , 516916 , 525774 , 527887 , 529193 , 531464 , 533183 , 533260 , 534667 , 539417 , 558339 , 559604 , 559993 , 560188 , 561595 , 563115 , 564719 , 580198 , 580344 , 581708 , 589457 , 590423 , 594886 , 596529 , 604003 , 609268 , 619378 , 622387 , 635186 , 641337 , 645838 , 688255 , 704867 , 713617 , 715209 , 718277 , 718349 , 728474 , 756343 , 768380 , 772878 , 780661 , 781746 , 782432 , 782472 , 788688 , 803128 , 813779 , 817264 , 822093 , 822553 , 823148 , 826910 );
Copy