4
10.05 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
313994
386924
709652
674661
712062
709797
588141
567866
741108
774215
775668
776570
563772
686854
775669
533260
718264
620984
626542
469084
604723
781975
784475
736281
477396
529193
578422
414710
531464
823697
727812
816397
822571
9953
677630
154310
382110
677640
786084
413216
420313
457167
445969
823238
457177
596415
187818
398309
8347
820841
818519
624276
388202
414269
818169
448646
495725
578492
467027
807980
484853
516034
470742
388219
307940
563787
]
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 (313994 , 386924 , 709652 , 674661 , 712062 , 709797 , 588141 , 567866 , 741108 , 774215 , 775668 , 776570 , 563772 , 686854 , 775669 , 533260 , 718264 , 620984 , 626542 , 469084 , 604723 , 781975 , 784475 , 736281 , 477396 , 529193 , 578422 , 414710 , 531464 , 823697 , 727812 , 816397 , 822571 , 9953 , 677630 , 154310 , 382110 , 677640 , 786084 , 413216 , 420313 , 457167 , 445969 , 823238 , 457177 , 596415 , 187818 , 398309 , 8347 , 820841 , 818519 , 624276 , 388202 , 414269 , 818169 , 448646 , 495725 , 578492 , 467027 , 807980 , 484853 , 516034 , 470742 , 388219 , 307940 , 563787 );
Copy
5
3.31 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
8347
9953
154310
187818
307940
313994
382110
386924
388202
388219
398309
413216
414269
414710
420313
445969
448646
457167
457177
467027
469084
470742
477396
484853
495725
516034
529193
531464
533260
563772
563787
567866
578422
578492
588141
596415
604723
620984
624276
626542
674661
677630
677640
686854
709652
709797
712062
718264
727812
736281
741108
774215
775668
775669
776570
781975
784475
786084
807980
816397
818169
818519
820841
822571
823238
]
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 (8347 , 9953 , 154310 , 187818 , 307940 , 313994 , 382110 , 386924 , 388202 , 388219 , 398309 , 413216 , 414269 , 414710 , 420313 , 445969 , 448646 , 457167 , 457177 , 467027 , 469084 , 470742 , 477396 , 484853 , 495725 , 516034 , 529193 , 531464 , 533260 , 563772 , 563787 , 567866 , 578422 , 578492 , 588141 , 596415 , 604723 , 620984 , 624276 , 626542 , 674661 , 677630 , 677640 , 686854 , 709652 , 709797 , 712062 , 718264 , 727812 , 736281 , 741108 , 774215 , 775668 , 775669 , 776570 , 781975 , 784475 , 786084 , 807980 , 816397 , 818169 , 818519 , 820841 , 822571 , 823238 );
Copy
6
288.18 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
8347
9953
154310
187818
307940
313994
382110
386924
388202
388219
398309
413216
414269
414710
420313
445969
448646
457167
457177
467027
469084
470742
477396
484853
495725
516034
529193
531464
533260
563772
563787
567866
578422
578492
588141
596415
604723
620984
624276
626542
674661
677630
677640
686854
709652
709797
712062
718264
727812
736281
741108
774215
775668
775669
776570
781975
784475
786084
807980
816397
818169
818519
820841
822571
823238
]
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 (8347 , 9953 , 154310 , 187818 , 307940 , 313994 , 382110 , 386924 , 388202 , 388219 , 398309 , 413216 , 414269 , 414710 , 420313 , 445969 , 448646 , 457167 , 457177 , 467027 , 469084 , 470742 , 477396 , 484853 , 495725 , 516034 , 529193 , 531464 , 533260 , 563772 , 563787 , 567866 , 578422 , 578492 , 588141 , 596415 , 604723 , 620984 , 624276 , 626542 , 674661 , 677630 , 677640 , 686854 , 709652 , 709797 , 712062 , 718264 , 727812 , 736281 , 741108 , 774215 , 775668 , 775669 , 776570 , 781975 , 784475 , 786084 , 807980 , 816397 , 818169 , 818519 , 820841 , 822571 , 823238 );
Copy