3
9.74 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
432161
629319
650945
546758
574359
186171
383137
381790
379377
153364
386727
386605
163096
507258
423688
546770
601132
400843
519905
205251
423211
512216
562850
434439
61051
752198
781147
519907
541930
355652
550735
573473
383730
557205
429355
429723
512680
386860
482242
600586
457255
469258
583280
499036
550641
480375
412474
532251
424713
557512
407566
584535
534239
465006
456173
425374
522979
557537
586590
429369
516873
558578
529450
603813
623814
560230
524492
546783
654197
586032
453713
607879
519908
626448
]
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 (432161 , 629319 , 650945 , 546758 , 574359 , 186171 , 383137 , 381790 , 379377 , 153364 , 386727 , 386605 , 163096 , 507258 , 423688 , 546770 , 601132 , 400843 , 519905 , 205251 , 423211 , 512216 , 562850 , 434439 , 61051 , 752198 , 781147 , 519907 , 541930 , 355652 , 550735 , 573473 , 383730 , 557205 , 429355 , 429723 , 512680 , 386860 , 482242 , 600586 , 457255 , 469258 , 583280 , 499036 , 550641 , 480375 , 412474 , 532251 , 424713 , 557512 , 407566 , 584535 , 534239 , 465006 , 456173 , 425374 , 522979 , 557537 , 586590 , 429369 , 516873 , 558578 , 529450 , 603813 , 623814 , 560230 , 524492 , 546783 , 654197 , 586032 , 453713 , 607879 , 519908 , 626448 );
Copy
4
2.24 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
61051
153364
163096
186171
205251
355652
379377
381790
383137
383730
386605
386727
386860
400843
407566
412474
423211
423688
424713
425374
429355
429369
429723
432161
434439
453713
456173
457255
465006
469258
480375
482242
499036
507258
512216
512680
516873
519905
519907
519908
522979
524492
529450
532251
534239
541930
546758
546770
546783
550641
550735
557205
557512
557537
558578
560230
562850
573473
574359
583280
584535
586032
586590
600586
601132
603813
607879
623814
626448
629319
650945
654197
752198
781147
]
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 (61051 , 153364 , 163096 , 186171 , 205251 , 355652 , 379377 , 381790 , 383137 , 383730 , 386605 , 386727 , 386860 , 400843 , 407566 , 412474 , 423211 , 423688 , 424713 , 425374 , 429355 , 429369 , 429723 , 432161 , 434439 , 453713 , 456173 , 457255 , 465006 , 469258 , 480375 , 482242 , 499036 , 507258 , 512216 , 512680 , 516873 , 519905 , 519907 , 519908 , 522979 , 524492 , 529450 , 532251 , 534239 , 541930 , 546758 , 546770 , 546783 , 550641 , 550735 , 557205 , 557512 , 557537 , 558578 , 560230 , 562850 , 573473 , 574359 , 583280 , 584535 , 586032 , 586590 , 600586 , 601132 , 603813 , 607879 , 623814 , 626448 , 629319 , 650945 , 654197 , 752198 , 781147 );
Copy
5
118.39 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
61051
153364
163096
186171
205251
355652
379377
381790
383137
383730
386605
386727
386860
400843
407566
412474
423211
423688
424713
425374
429355
429369
429723
432161
434439
453713
456173
457255
465006
469258
480375
482242
499036
507258
512216
512680
516873
519905
519907
519908
522979
524492
529450
532251
534239
541930
546758
546770
546783
550641
550735
557205
557512
557537
558578
560230
562850
573473
574359
583280
584535
586032
586590
600586
601132
603813
607879
623814
626448
629319
650945
654197
752198
781147
]
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 (61051 , 153364 , 163096 , 186171 , 205251 , 355652 , 379377 , 381790 , 383137 , 383730 , 386605 , 386727 , 386860 , 400843 , 407566 , 412474 , 423211 , 423688 , 424713 , 425374 , 429355 , 429369 , 429723 , 432161 , 434439 , 453713 , 456173 , 457255 , 465006 , 469258 , 480375 , 482242 , 499036 , 507258 , 512216 , 512680 , 516873 , 519905 , 519907 , 519908 , 522979 , 524492 , 529450 , 532251 , 534239 , 541930 , 546758 , 546770 , 546783 , 550641 , 550735 , 557205 , 557512 , 557537 , 558578 , 560230 , 562850 , 573473 , 574359 , 583280 , 584535 , 586032 , 586590 , 600586 , 601132 , 603813 , 607879 , 623814 , 626448 , 629319 , 650945 , 654197 , 752198 , 781147 );
Copy