4
14.99 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
642066
642691
599875
628366
628387
628390
628406
637016
599912
606798
634116
637094
632708
454583
434001
515681
456915
530479
530482
536645
521579
541863
554519
544825
579647
565259
647343
687158
645997
672710
672712
678131
647859
600296
628384
636294
597235
612856
633123
605449
628382
477097
485147
447426
525464
532816
530808
534387
583700
541848
649960
621722
514113
520909
526211
579341
680100
680195
666880
680197
580669
608658
628383
604456
628371
617417
627806
416635
521576
529200
540330
628333
637074
613179
553280
]
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 (642066 , 642691 , 599875 , 628366 , 628387 , 628390 , 628406 , 637016 , 599912 , 606798 , 634116 , 637094 , 632708 , 454583 , 434001 , 515681 , 456915 , 530479 , 530482 , 536645 , 521579 , 541863 , 554519 , 544825 , 579647 , 565259 , 647343 , 687158 , 645997 , 672710 , 672712 , 678131 , 647859 , 600296 , 628384 , 636294 , 597235 , 612856 , 633123 , 605449 , 628382 , 477097 , 485147 , 447426 , 525464 , 532816 , 530808 , 534387 , 583700 , 541848 , 649960 , 621722 , 514113 , 520909 , 526211 , 579341 , 680100 , 680195 , 666880 , 680197 , 580669 , 608658 , 628383 , 604456 , 628371 , 617417 , 627806 , 416635 , 521576 , 529200 , 540330 , 628333 , 637074 , 613179 , 553280 );
Copy
5
2.81 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
416635
434001
447426
454583
456915
477097
485147
514113
515681
520909
521576
521579
525464
526211
529200
530479
530482
530808
532816
534387
536645
540330
541848
541863
544825
553280
554519
565259
579341
579647
580669
583700
597235
599875
599912
600296
604456
605449
606798
608658
612856
613179
617417
621722
627806
628333
628366
628371
628382
628383
628384
628387
628390
628406
632708
633123
634116
636294
637016
637074
637094
642066
642691
645997
647343
647859
649960
666880
672710
672712
678131
680100
680195
680197
687158
]
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 (416635 , 434001 , 447426 , 454583 , 456915 , 477097 , 485147 , 514113 , 515681 , 520909 , 521576 , 521579 , 525464 , 526211 , 529200 , 530479 , 530482 , 530808 , 532816 , 534387 , 536645 , 540330 , 541848 , 541863 , 544825 , 553280 , 554519 , 565259 , 579341 , 579647 , 580669 , 583700 , 597235 , 599875 , 599912 , 600296 , 604456 , 605449 , 606798 , 608658 , 612856 , 613179 , 617417 , 621722 , 627806 , 628333 , 628366 , 628371 , 628382 , 628383 , 628384 , 628387 , 628390 , 628406 , 632708 , 633123 , 634116 , 636294 , 637016 , 637074 , 637094 , 642066 , 642691 , 645997 , 647343 , 647859 , 649960 , 666880 , 672710 , 672712 , 678131 , 680100 , 680195 , 680197 , 687158 );
Copy
6
79.84 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
416635
434001
447426
454583
456915
477097
485147
514113
515681
520909
521576
521579
525464
526211
529200
530479
530482
530808
532816
534387
536645
540330
541848
541863
544825
553280
554519
565259
579341
579647
580669
583700
597235
599875
599912
600296
604456
605449
606798
608658
612856
613179
617417
621722
627806
628333
628366
628371
628382
628383
628384
628387
628390
628406
632708
633123
634116
636294
637016
637074
637094
642066
642691
645997
647343
647859
649960
666880
672710
672712
678131
680100
680195
680197
687158
]
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 (416635 , 434001 , 447426 , 454583 , 456915 , 477097 , 485147 , 514113 , 515681 , 520909 , 521576 , 521579 , 525464 , 526211 , 529200 , 530479 , 530482 , 530808 , 532816 , 534387 , 536645 , 540330 , 541848 , 541863 , 544825 , 553280 , 554519 , 565259 , 579341 , 579647 , 580669 , 583700 , 597235 , 599875 , 599912 , 600296 , 604456 , 605449 , 606798 , 608658 , 612856 , 613179 , 617417 , 621722 , 627806 , 628333 , 628366 , 628371 , 628382 , 628383 , 628384 , 628387 , 628390 , 628406 , 632708 , 633123 , 634116 , 636294 , 637016 , 637074 , 637094 , 642066 , 642691 , 645997 , 647343 , 647859 , 649960 , 666880 , 672710 , 672712 , 678131 , 680100 , 680195 , 680197 , 687158 );
Copy