3
13.17 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
598915
600973
606567
610661
610786
603640
596739
733204
420447
456448
476022
479820
524527
525871
522328
522215
522525
524613
520448
732633
429857
490050
513126
591416
608695
590230
593269
608930
621348
586554
599533
422028
454521
473598
517095
517117
529457
494036
486332
499014
526948
581433
482506
456680
511013
523212
509713
524018
524417
507285
668559
615908
490068
520753
562754
553661
562758
578631
583723
613300
628426
520759
514997
521815
]
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 (598915 , 600973 , 606567 , 610661 , 610786 , 603640 , 596739 , 733204 , 420447 , 456448 , 476022 , 479820 , 524527 , 525871 , 522328 , 522215 , 522525 , 524613 , 520448 , 732633 , 429857 , 490050 , 513126 , 591416 , 608695 , 590230 , 593269 , 608930 , 621348 , 586554 , 599533 , 422028 , 454521 , 473598 , 517095 , 517117 , 529457 , 494036 , 486332 , 499014 , 526948 , 581433 , 482506 , 456680 , 511013 , 523212 , 509713 , 524018 , 524417 , 507285 , 668559 , 615908 , 490068 , 520753 , 562754 , 553661 , 562758 , 578631 , 583723 , 613300 , 628426 , 520759 , 514997 , 521815 );
Copy
4
2.53 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
420447
422028
429857
454521
456448
456680
473598
476022
479820
482506
486332
490050
490068
494036
499014
507285
509713
511013
513126
514997
517095
517117
520448
520753
520759
521815
522215
522328
522525
523212
524018
524417
524527
524613
525871
526948
529457
553661
562754
562758
578631
581433
583723
586554
590230
591416
593269
596739
598915
599533
600973
603640
606567
608695
608930
610661
610786
613300
615908
621348
628426
668559
732633
733204
]
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 (420447 , 422028 , 429857 , 454521 , 456448 , 456680 , 473598 , 476022 , 479820 , 482506 , 486332 , 490050 , 490068 , 494036 , 499014 , 507285 , 509713 , 511013 , 513126 , 514997 , 517095 , 517117 , 520448 , 520753 , 520759 , 521815 , 522215 , 522328 , 522525 , 523212 , 524018 , 524417 , 524527 , 524613 , 525871 , 526948 , 529457 , 553661 , 562754 , 562758 , 578631 , 581433 , 583723 , 586554 , 590230 , 591416 , 593269 , 596739 , 598915 , 599533 , 600973 , 603640 , 606567 , 608695 , 608930 , 610661 , 610786 , 613300 , 615908 , 621348 , 628426 , 668559 , 732633 , 733204 );
Copy
5
76.20 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
420447
422028
429857
454521
456448
456680
473598
476022
479820
482506
486332
490050
490068
494036
499014
507285
509713
511013
513126
514997
517095
517117
520448
520753
520759
521815
522215
522328
522525
523212
524018
524417
524527
524613
525871
526948
529457
553661
562754
562758
578631
581433
583723
586554
590230
591416
593269
596739
598915
599533
600973
603640
606567
608695
608930
610661
610786
613300
615908
621348
628426
668559
732633
733204
]
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 (420447 , 422028 , 429857 , 454521 , 456448 , 456680 , 473598 , 476022 , 479820 , 482506 , 486332 , 490050 , 490068 , 494036 , 499014 , 507285 , 509713 , 511013 , 513126 , 514997 , 517095 , 517117 , 520448 , 520753 , 520759 , 521815 , 522215 , 522328 , 522525 , 523212 , 524018 , 524417 , 524527 , 524613 , 525871 , 526948 , 529457 , 553661 , 562754 , 562758 , 578631 , 581433 , 583723 , 586554 , 590230 , 591416 , 593269 , 596739 , 598915 , 599533 , 600973 , 603640 , 606567 , 608695 , 608930 , 610661 , 610786 , 613300 , 615908 , 621348 , 628426 , 668559 , 732633 , 733204 );
Copy