3
13.23 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
678067
651188
565253
510395
632689
632618
637016
421352
678127
666546
602614
624175
639717
522142
419861
530010
531257
537896
540404
666539
666540
676110
677801
666897
678066
565247
628376
636321
628379
628388
634207
750538
633478
778359
434829
704205
467608
532756
637044
633749
535456
523225
545604
637093
632663
591680
426368
647994
800588
636309
443099
696998
597262
608431
635171
803455
583989
678143
668505
565262
530382
636985
628380
666906
600011
523924
530369
562825
599940
]
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 (678067 , 651188 , 565253 , 510395 , 632689 , 632618 , 637016 , 421352 , 678127 , 666546 , 602614 , 624175 , 639717 , 522142 , 419861 , 530010 , 531257 , 537896 , 540404 , 666539 , 666540 , 676110 , 677801 , 666897 , 678066 , 565247 , 628376 , 636321 , 628379 , 628388 , 634207 , 750538 , 633478 , 778359 , 434829 , 704205 , 467608 , 532756 , 637044 , 633749 , 535456 , 523225 , 545604 , 637093 , 632663 , 591680 , 426368 , 647994 , 800588 , 636309 , 443099 , 696998 , 597262 , 608431 , 635171 , 803455 , 583989 , 678143 , 668505 , 565262 , 530382 , 636985 , 628380 , 666906 , 600011 , 523924 , 530369 , 562825 , 599940 );
Copy
4
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
419861
421352
426368
434829
443099
467608
510395
522142
523225
523924
530010
530369
530382
531257
532756
535456
537896
540404
545604
562825
565247
565253
565262
583989
591680
597262
599940
600011
602614
608431
624175
628376
628379
628380
628388
632618
632663
632689
633478
633749
634207
635171
636309
636321
636985
637016
637044
637093
639717
647994
651188
666539
666540
666546
666897
666906
668505
676110
677801
678066
678067
678127
678143
696998
704205
750538
778359
800588
803455
]
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 (419861 , 421352 , 426368 , 434829 , 443099 , 467608 , 510395 , 522142 , 523225 , 523924 , 530010 , 530369 , 530382 , 531257 , 532756 , 535456 , 537896 , 540404 , 545604 , 562825 , 565247 , 565253 , 565262 , 583989 , 591680 , 597262 , 599940 , 600011 , 602614 , 608431 , 624175 , 628376 , 628379 , 628380 , 628388 , 632618 , 632663 , 632689 , 633478 , 633749 , 634207 , 635171 , 636309 , 636321 , 636985 , 637016 , 637044 , 637093 , 639717 , 647994 , 651188 , 666539 , 666540 , 666546 , 666897 , 666906 , 668505 , 676110 , 677801 , 678066 , 678067 , 678127 , 678143 , 696998 , 704205 , 750538 , 778359 , 800588 , 803455 );
Copy
5
93.46 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
419861
421352
426368
434829
443099
467608
510395
522142
523225
523924
530010
530369
530382
531257
532756
535456
537896
540404
545604
562825
565247
565253
565262
583989
591680
597262
599940
600011
602614
608431
624175
628376
628379
628380
628388
632618
632663
632689
633478
633749
634207
635171
636309
636321
636985
637016
637044
637093
639717
647994
651188
666539
666540
666546
666897
666906
668505
676110
677801
678066
678067
678127
678143
696998
704205
750538
778359
800588
803455
]
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 (419861 , 421352 , 426368 , 434829 , 443099 , 467608 , 510395 , 522142 , 523225 , 523924 , 530010 , 530369 , 530382 , 531257 , 532756 , 535456 , 537896 , 540404 , 545604 , 562825 , 565247 , 565253 , 565262 , 583989 , 591680 , 597262 , 599940 , 600011 , 602614 , 608431 , 624175 , 628376 , 628379 , 628380 , 628388 , 632618 , 632663 , 632689 , 633478 , 633749 , 634207 , 635171 , 636309 , 636321 , 636985 , 637016 , 637044 , 637093 , 639717 , 647994 , 651188 , 666539 , 666540 , 666546 , 666897 , 666906 , 668505 , 676110 , 677801 , 678066 , 678067 , 678127 , 678143 , 696998 , 704205 , 750538 , 778359 , 800588 , 803455 );
Copy