3
13.11 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
510170
528223
539976
548547
558736
561961
568113
580588
574049
658445
680815
687339
663730
548167
597545
604824
595867
604815
620981
623187
588436
782452
752676
811808
748521
424195
476776
451661
469161
526291
493849
499836
526864
521425
436684
440698
814523
451138
538703
538543
505386
581132
692743
580183
621759
629287
590788
598540
587292
597576
776481
782450
785871
752706
756768
439117
493696
439158
420816
429594
500772
513790
576128
713192
655555
592573
630427
432363
512934
585999
574136
602183
614975
595588
595891
588520
]
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 (510170 , 528223 , 539976 , 548547 , 558736 , 561961 , 568113 , 580588 , 574049 , 658445 , 680815 , 687339 , 663730 , 548167 , 597545 , 604824 , 595867 , 604815 , 620981 , 623187 , 588436 , 782452 , 752676 , 811808 , 748521 , 424195 , 476776 , 451661 , 469161 , 526291 , 493849 , 499836 , 526864 , 521425 , 436684 , 440698 , 814523 , 451138 , 538703 , 538543 , 505386 , 581132 , 692743 , 580183 , 621759 , 629287 , 590788 , 598540 , 587292 , 597576 , 776481 , 782450 , 785871 , 752706 , 756768 , 439117 , 493696 , 439158 , 420816 , 429594 , 500772 , 513790 , 576128 , 713192 , 655555 , 592573 , 630427 , 432363 , 512934 , 585999 , 574136 , 602183 , 614975 , 595588 , 595891 , 588520 );
Copy
4
2.85 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
420816
424195
429594
432363
436684
439117
439158
440698
451138
451661
469161
476776
493696
493849
499836
500772
505386
510170
512934
513790
521425
526291
526864
528223
538543
538703
539976
548167
548547
558736
561961
568113
574049
574136
576128
580183
580588
581132
585999
587292
588436
588520
590788
592573
595588
595867
595891
597545
597576
598540
602183
604815
604824
614975
620981
621759
623187
629287
655555
658445
663730
680815
687339
692743
713192
748521
752676
752706
756768
776481
782450
782452
785871
811808
814523
]
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 (420816 , 424195 , 429594 , 432363 , 436684 , 439117 , 439158 , 440698 , 451138 , 451661 , 469161 , 476776 , 493696 , 493849 , 499836 , 500772 , 505386 , 510170 , 512934 , 513790 , 521425 , 526291 , 526864 , 528223 , 538543 , 538703 , 539976 , 548167 , 548547 , 558736 , 561961 , 568113 , 574049 , 574136 , 576128 , 580183 , 580588 , 581132 , 585999 , 587292 , 588436 , 588520 , 590788 , 592573 , 595588 , 595867 , 595891 , 597545 , 597576 , 598540 , 602183 , 604815 , 604824 , 614975 , 620981 , 621759 , 623187 , 629287 , 655555 , 658445 , 663730 , 680815 , 687339 , 692743 , 713192 , 748521 , 752676 , 752706 , 756768 , 776481 , 782450 , 782452 , 785871 , 811808 , 814523 );
Copy
5
83.44 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
420816
424195
429594
432363
436684
439117
439158
440698
451138
451661
469161
476776
493696
493849
499836
500772
505386
510170
512934
513790
521425
526291
526864
528223
538543
538703
539976
548167
548547
558736
561961
568113
574049
574136
576128
580183
580588
581132
585999
587292
588436
588520
590788
592573
595588
595867
595891
597545
597576
598540
602183
604815
604824
614975
620981
621759
623187
629287
655555
658445
663730
680815
687339
692743
713192
748521
752676
752706
756768
776481
782450
782452
785871
811808
814523
]
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 (420816 , 424195 , 429594 , 432363 , 436684 , 439117 , 439158 , 440698 , 451138 , 451661 , 469161 , 476776 , 493696 , 493849 , 499836 , 500772 , 505386 , 510170 , 512934 , 513790 , 521425 , 526291 , 526864 , 528223 , 538543 , 538703 , 539976 , 548167 , 548547 , 558736 , 561961 , 568113 , 574049 , 574136 , 576128 , 580183 , 580588 , 581132 , 585999 , 587292 , 588436 , 588520 , 590788 , 592573 , 595588 , 595867 , 595891 , 597545 , 597576 , 598540 , 602183 , 604815 , 604824 , 614975 , 620981 , 621759 , 623187 , 629287 , 655555 , 658445 , 663730 , 680815 , 687339 , 692743 , 713192 , 748521 , 752676 , 752706 , 756768 , 776481 , 782450 , 782452 , 785871 , 811808 , 814523 );
Copy