4
10.67 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
565728
555166
675934
695294
635190
593026
775140
826061
531919
552036
695298
592592
600552
795280
812885
602753
808461
464943
510567
827063
542884
418047
513823
524379
566075
557605
769337
812882
615075
428944
517687
558175
595944
398554
687452
601767
595329
606396
418057
424876
584336
546085
603929
756279
496972
563656
599789
592879
481317
384368
425993
455967
455981
459637
447273
584610
600502
455184
584627
621353
418051
500883
460969
496887
561458
601101
]
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 (565728 , 555166 , 675934 , 695294 , 635190 , 593026 , 775140 , 826061 , 531919 , 552036 , 695298 , 592592 , 600552 , 795280 , 812885 , 602753 , 808461 , 464943 , 510567 , 827063 , 542884 , 418047 , 513823 , 524379 , 566075 , 557605 , 769337 , 812882 , 615075 , 428944 , 517687 , 558175 , 595944 , 398554 , 687452 , 601767 , 595329 , 606396 , 418057 , 424876 , 584336 , 546085 , 603929 , 756279 , 496972 , 563656 , 599789 , 592879 , 481317 , 384368 , 425993 , 455967 , 455981 , 459637 , 447273 , 584610 , 600502 , 455184 , 584627 , 621353 , 418051 , 500883 , 460969 , 496887 , 561458 , 601101 );
Copy
5
2.86 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
384368
398554
418047
418051
418057
424876
425993
428944
447273
455184
455967
455981
459637
460969
464943
481317
496887
496972
500883
510567
513823
517687
524379
531919
542884
546085
552036
555166
557605
558175
561458
563656
565728
566075
584336
584610
584627
592592
592879
593026
595329
595944
599789
600502
600552
601101
601767
602753
603929
606396
615075
621353
635190
675934
687452
695294
695298
756279
769337
775140
795280
808461
812882
812885
826061
827063
]
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 (384368 , 398554 , 418047 , 418051 , 418057 , 424876 , 425993 , 428944 , 447273 , 455184 , 455967 , 455981 , 459637 , 460969 , 464943 , 481317 , 496887 , 496972 , 500883 , 510567 , 513823 , 517687 , 524379 , 531919 , 542884 , 546085 , 552036 , 555166 , 557605 , 558175 , 561458 , 563656 , 565728 , 566075 , 584336 , 584610 , 584627 , 592592 , 592879 , 593026 , 595329 , 595944 , 599789 , 600502 , 600552 , 601101 , 601767 , 602753 , 603929 , 606396 , 615075 , 621353 , 635190 , 675934 , 687452 , 695294 , 695298 , 756279 , 769337 , 775140 , 795280 , 808461 , 812882 , 812885 , 826061 , 827063 );
Copy
6
92.52 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
384368
398554
418047
418051
418057
424876
425993
428944
447273
455184
455967
455981
459637
460969
464943
481317
496887
496972
500883
510567
513823
517687
524379
531919
542884
546085
552036
555166
557605
558175
561458
563656
565728
566075
584336
584610
584627
592592
592879
593026
595329
595944
599789
600502
600552
601101
601767
602753
603929
606396
615075
621353
635190
675934
687452
695294
695298
756279
769337
775140
795280
808461
812882
812885
826061
827063
]
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 (384368 , 398554 , 418047 , 418051 , 418057 , 424876 , 425993 , 428944 , 447273 , 455184 , 455967 , 455981 , 459637 , 460969 , 464943 , 481317 , 496887 , 496972 , 500883 , 510567 , 513823 , 517687 , 524379 , 531919 , 542884 , 546085 , 552036 , 555166 , 557605 , 558175 , 561458 , 563656 , 565728 , 566075 , 584336 , 584610 , 584627 , 592592 , 592879 , 593026 , 595329 , 595944 , 599789 , 600502 , 600552 , 601101 , 601767 , 602753 , 603929 , 606396 , 615075 , 621353 , 635190 , 675934 , 687452 , 695294 , 695298 , 756279 , 769337 , 775140 , 795280 , 808461 , 812882 , 812885 , 826061 , 827063 );
Copy