3
215.50 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
785312
607476
642689
827104
763458
642696
799350
629923
442679
722277
629330
646178
605442
637143
632690
632707
823947
795714
593488
394061
814382
828845
578692
618265
760120
540387
800029
710310
811742
596165
702570
703505
675638
596166
595968
805459
453790
602942
658225
818160
810468
442737
442685
570963
411810
574145
484009
818906
537673
442690
554825
662143
603240
643122
360439
514235
648817
642018
442726
596069
633819
446369
633126
531136
642006
642037
524427
]
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 (785312 , 607476 , 642689 , 827104 , 763458 , 642696 , 799350 , 629923 , 442679 , 722277 , 629330 , 646178 , 605442 , 637143 , 632690 , 632707 , 823947 , 795714 , 593488 , 394061 , 814382 , 828845 , 578692 , 618265 , 760120 , 540387 , 800029 , 710310 , 811742 , 596165 , 702570 , 703505 , 675638 , 596166 , 595968 , 805459 , 453790 , 602942 , 658225 , 818160 , 810468 , 442737 , 442685 , 570963 , 411810 , 574145 , 484009 , 818906 , 537673 , 442690 , 554825 , 662143 , 603240 , 643122 , 360439 , 514235 , 648817 , 642018 , 442726 , 596069 , 633819 , 446369 , 633126 , 531136 , 642006 , 642037 , 524427 );
Copy
4
3.07 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
360439
394061
411810
442679
442685
442690
442726
442737
446369
453790
484009
514235
524427
531136
537673
540387
554825
570963
574145
578692
593488
595968
596069
596165
596166
602942
603240
605442
607476
618265
629330
629923
632690
632707
633126
633819
637143
642006
642018
642037
642689
642696
643122
646178
648817
658225
662143
675638
702570
703505
710310
722277
760120
763458
785312
795714
799350
800029
805459
810468
811742
814382
818160
818906
823947
827104
828845
]
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 (360439 , 394061 , 411810 , 442679 , 442685 , 442690 , 442726 , 442737 , 446369 , 453790 , 484009 , 514235 , 524427 , 531136 , 537673 , 540387 , 554825 , 570963 , 574145 , 578692 , 593488 , 595968 , 596069 , 596165 , 596166 , 602942 , 603240 , 605442 , 607476 , 618265 , 629330 , 629923 , 632690 , 632707 , 633126 , 633819 , 637143 , 642006 , 642018 , 642037 , 642689 , 642696 , 643122 , 646178 , 648817 , 658225 , 662143 , 675638 , 702570 , 703505 , 710310 , 722277 , 760120 , 763458 , 785312 , 795714 , 799350 , 800029 , 805459 , 810468 , 811742 , 814382 , 818160 , 818906 , 823947 , 827104 , 828845 );
Copy
5
88.79 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
360439
394061
411810
442679
442685
442690
442726
442737
446369
453790
484009
514235
524427
531136
537673
540387
554825
570963
574145
578692
593488
595968
596069
596165
596166
602942
603240
605442
607476
618265
629330
629923
632690
632707
633126
633819
637143
642006
642018
642037
642689
642696
643122
646178
648817
658225
662143
675638
702570
703505
710310
722277
760120
763458
785312
795714
799350
800029
805459
810468
811742
814382
818160
818906
823947
827104
828845
]
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 (360439 , 394061 , 411810 , 442679 , 442685 , 442690 , 442726 , 442737 , 446369 , 453790 , 484009 , 514235 , 524427 , 531136 , 537673 , 540387 , 554825 , 570963 , 574145 , 578692 , 593488 , 595968 , 596069 , 596165 , 596166 , 602942 , 603240 , 605442 , 607476 , 618265 , 629330 , 629923 , 632690 , 632707 , 633126 , 633819 , 637143 , 642006 , 642018 , 642037 , 642689 , 642696 , 643122 , 646178 , 648817 , 658225 , 662143 , 675638 , 702570 , 703505 , 710310 , 722277 , 760120 , 763458 , 785312 , 795714 , 799350 , 800029 , 805459 , 810468 , 811742 , 814382 , 818160 , 818906 , 823947 , 827104 , 828845 );
Copy