4
11.87 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
625596
476703
625593
785600
656652
656229
652627
599806
710126
647005
656510
750107
533099
577838
647000
721602
770706
583420
682753
632541
767596
764344
765777
771083
630131
465157
680756
601271
638906
472186
575690
541521
658527
712408
589317
776525
560942
606476
807043
774813
83163
189004
443238
819662
448658
603833
642578
791495
780430
784419
458546
47613
455332
478625
469735
649651
812917
478581
497036
767859
462566
514182
474796
514214
455919
591428
465336
]
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 (625596 , 476703 , 625593 , 785600 , 656652 , 656229 , 652627 , 599806 , 710126 , 647005 , 656510 , 750107 , 533099 , 577838 , 647000 , 721602 , 770706 , 583420 , 682753 , 632541 , 767596 , 764344 , 765777 , 771083 , 630131 , 465157 , 680756 , 601271 , 638906 , 472186 , 575690 , 541521 , 658527 , 712408 , 589317 , 776525 , 560942 , 606476 , 807043 , 774813 , 83163 , 189004 , 443238 , 819662 , 448658 , 603833 , 642578 , 791495 , 780430 , 784419 , 458546 , 47613 , 455332 , 478625 , 469735 , 649651 , 812917 , 478581 , 497036 , 767859 , 462566 , 514182 , 474796 , 514214 , 455919 , 591428 , 465336 );
Copy
5
3.43 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
47613
83163
189004
443238
448658
455332
455919
458546
462566
465157
465336
469735
472186
474796
476703
478581
478625
497036
514182
514214
533099
541521
560942
575690
577838
583420
589317
591428
599806
601271
603833
606476
625593
625596
630131
632541
638906
642578
647000
647005
649651
652627
656229
656510
656652
658527
680756
682753
710126
712408
721602
750107
764344
765777
767596
767859
770706
771083
774813
776525
780430
784419
785600
791495
807043
812917
819662
]
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 (47613 , 83163 , 189004 , 443238 , 448658 , 455332 , 455919 , 458546 , 462566 , 465157 , 465336 , 469735 , 472186 , 474796 , 476703 , 478581 , 478625 , 497036 , 514182 , 514214 , 533099 , 541521 , 560942 , 575690 , 577838 , 583420 , 589317 , 591428 , 599806 , 601271 , 603833 , 606476 , 625593 , 625596 , 630131 , 632541 , 638906 , 642578 , 647000 , 647005 , 649651 , 652627 , 656229 , 656510 , 656652 , 658527 , 680756 , 682753 , 710126 , 712408 , 721602 , 750107 , 764344 , 765777 , 767596 , 767859 , 770706 , 771083 , 774813 , 776525 , 780430 , 784419 , 785600 , 791495 , 807043 , 812917 , 819662 );
Copy
6
99.15 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
47613
83163
189004
443238
448658
455332
455919
458546
462566
465157
465336
469735
472186
474796
476703
478581
478625
497036
514182
514214
533099
541521
560942
575690
577838
583420
589317
591428
599806
601271
603833
606476
625593
625596
630131
632541
638906
642578
647000
647005
649651
652627
656229
656510
656652
658527
680756
682753
710126
712408
721602
750107
764344
765777
767596
767859
770706
771083
774813
776525
780430
784419
785600
791495
807043
812917
819662
]
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 (47613 , 83163 , 189004 , 443238 , 448658 , 455332 , 455919 , 458546 , 462566 , 465157 , 465336 , 469735 , 472186 , 474796 , 476703 , 478581 , 478625 , 497036 , 514182 , 514214 , 533099 , 541521 , 560942 , 575690 , 577838 , 583420 , 589317 , 591428 , 599806 , 601271 , 603833 , 606476 , 625593 , 625596 , 630131 , 632541 , 638906 , 642578 , 647000 , 647005 , 649651 , 652627 , 656229 , 656510 , 656652 , 658527 , 680756 , 682753 , 710126 , 712408 , 721602 , 750107 , 764344 , 765777 , 767596 , 767859 , 770706 , 771083 , 774813 , 776525 , 780430 , 784419 , 785600 , 791495 , 807043 , 812917 , 819662 );
Copy