3
12.02 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
552005
640688
552008
286475
447928
552018
622343
754198
530540
741214
432338
285885
644421
722489
724333
557937
557944
818530
721188
557949
557942
390192
723603
672490
678374
651155
576046
407007
560588
676968
765841
448855
624365
724217
635191
517196
446587
549783
801418
496784
433231
523712
471722
484092
507961
430336
684283
426117
498357
445742
645898
420398
507296
649106
426408
431965
470106
525211
411201
446080
485155
676911
519632
480719
607372
567148
562108
]
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 (552005 , 640688 , 552008 , 286475 , 447928 , 552018 , 622343 , 754198 , 530540 , 741214 , 432338 , 285885 , 644421 , 722489 , 724333 , 557937 , 557944 , 818530 , 721188 , 557949 , 557942 , 390192 , 723603 , 672490 , 678374 , 651155 , 576046 , 407007 , 560588 , 676968 , 765841 , 448855 , 624365 , 724217 , 635191 , 517196 , 446587 , 549783 , 801418 , 496784 , 433231 , 523712 , 471722 , 484092 , 507961 , 430336 , 684283 , 426117 , 498357 , 445742 , 645898 , 420398 , 507296 , 649106 , 426408 , 431965 , 470106 , 525211 , 411201 , 446080 , 485155 , 676911 , 519632 , 480719 , 607372 , 567148 , 562108 );
Copy
4
3.19 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
285885
286475
390192
407007
411201
420398
426117
426408
430336
431965
432338
433231
445742
446080
446587
447928
448855
470106
471722
480719
484092
485155
496784
498357
507296
507961
517196
519632
523712
525211
530540
549783
552005
552008
552018
557937
557942
557944
557949
560588
562108
567148
576046
607372
622343
624365
635191
640688
644421
645898
649106
651155
672490
676911
676968
678374
684283
721188
722489
723603
724217
724333
741214
754198
765841
801418
818530
]
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 (285885 , 286475 , 390192 , 407007 , 411201 , 420398 , 426117 , 426408 , 430336 , 431965 , 432338 , 433231 , 445742 , 446080 , 446587 , 447928 , 448855 , 470106 , 471722 , 480719 , 484092 , 485155 , 496784 , 498357 , 507296 , 507961 , 517196 , 519632 , 523712 , 525211 , 530540 , 549783 , 552005 , 552008 , 552018 , 557937 , 557942 , 557944 , 557949 , 560588 , 562108 , 567148 , 576046 , 607372 , 622343 , 624365 , 635191 , 640688 , 644421 , 645898 , 649106 , 651155 , 672490 , 676911 , 676968 , 678374 , 684283 , 721188 , 722489 , 723603 , 724217 , 724333 , 741214 , 754198 , 765841 , 801418 , 818530 );
Copy
5
85.38 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
285885
286475
390192
407007
411201
420398
426117
426408
430336
431965
432338
433231
445742
446080
446587
447928
448855
470106
471722
480719
484092
485155
496784
498357
507296
507961
517196
519632
523712
525211
530540
549783
552005
552008
552018
557937
557942
557944
557949
560588
562108
567148
576046
607372
622343
624365
635191
640688
644421
645898
649106
651155
672490
676911
676968
678374
684283
721188
722489
723603
724217
724333
741214
754198
765841
801418
818530
]
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 (285885 , 286475 , 390192 , 407007 , 411201 , 420398 , 426117 , 426408 , 430336 , 431965 , 432338 , 433231 , 445742 , 446080 , 446587 , 447928 , 448855 , 470106 , 471722 , 480719 , 484092 , 485155 , 496784 , 498357 , 507296 , 507961 , 517196 , 519632 , 523712 , 525211 , 530540 , 549783 , 552005 , 552008 , 552018 , 557937 , 557942 , 557944 , 557949 , 560588 , 562108 , 567148 , 576046 , 607372 , 622343 , 624365 , 635191 , 640688 , 644421 , 645898 , 649106 , 651155 , 672490 , 676911 , 676968 , 678374 , 684283 , 721188 , 722489 , 723603 , 724217 , 724333 , 741214 , 754198 , 765841 , 801418 , 818530 );
Copy