3
16.18 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
491461
785667
493806
658146
790753
733303
653869
508494
768783
745181
823538
636585
536972
758829
820149
396911
808080
732563
823562
651026
741304
330449
405147
505092
804508
603546
78536
826530
630696
641881
808298
719896
688104
715556
644059
610717
641481
496375
481663
641914
732993
750873
443637
508179
653876
516627
654677
632399
733557
471409
427907
720127
481679
481672
535087
469494
471814
443994
466493
463073
720115
419483
443661
443991
675515
586651
558439
558432
584749
518438
]
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 (491461 , 785667 , 493806 , 658146 , 790753 , 733303 , 653869 , 508494 , 768783 , 745181 , 823538 , 636585 , 536972 , 758829 , 820149 , 396911 , 808080 , 732563 , 823562 , 651026 , 741304 , 330449 , 405147 , 505092 , 804508 , 603546 , 78536 , 826530 , 630696 , 641881 , 808298 , 719896 , 688104 , 715556 , 644059 , 610717 , 641481 , 496375 , 481663 , 641914 , 732993 , 750873 , 443637 , 508179 , 653876 , 516627 , 654677 , 632399 , 733557 , 471409 , 427907 , 720127 , 481679 , 481672 , 535087 , 469494 , 471814 , 443994 , 466493 , 463073 , 720115 , 419483 , 443661 , 443991 , 675515 , 586651 , 558439 , 558432 , 584749 , 518438 );
Copy
4
2.35 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
78536
330449
396911
405147
419483
427907
443637
443661
443991
443994
463073
466493
469494
471409
471814
481663
481672
481679
491461
493806
496375
505092
508179
508494
516627
518438
535087
536972
558432
558439
584749
586651
603546
610717
630696
632399
636585
641481
641881
641914
644059
651026
653869
653876
654677
658146
675515
688104
715556
719896
720115
720127
732563
732993
733303
733557
741304
745181
750873
758829
768783
785667
790753
804508
808080
808298
820149
823538
823562
826530
]
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 (78536 , 330449 , 396911 , 405147 , 419483 , 427907 , 443637 , 443661 , 443991 , 443994 , 463073 , 466493 , 469494 , 471409 , 471814 , 481663 , 481672 , 481679 , 491461 , 493806 , 496375 , 505092 , 508179 , 508494 , 516627 , 518438 , 535087 , 536972 , 558432 , 558439 , 584749 , 586651 , 603546 , 610717 , 630696 , 632399 , 636585 , 641481 , 641881 , 641914 , 644059 , 651026 , 653869 , 653876 , 654677 , 658146 , 675515 , 688104 , 715556 , 719896 , 720115 , 720127 , 732563 , 732993 , 733303 , 733557 , 741304 , 745181 , 750873 , 758829 , 768783 , 785667 , 790753 , 804508 , 808080 , 808298 , 820149 , 823538 , 823562 , 826530 );
Copy
5
79.94 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
78536
330449
396911
405147
419483
427907
443637
443661
443991
443994
463073
466493
469494
471409
471814
481663
481672
481679
491461
493806
496375
505092
508179
508494
516627
518438
535087
536972
558432
558439
584749
586651
603546
610717
630696
632399
636585
641481
641881
641914
644059
651026
653869
653876
654677
658146
675515
688104
715556
719896
720115
720127
732563
732993
733303
733557
741304
745181
750873
758829
768783
785667
790753
804508
808080
808298
820149
823538
823562
826530
]
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 (78536 , 330449 , 396911 , 405147 , 419483 , 427907 , 443637 , 443661 , 443991 , 443994 , 463073 , 466493 , 469494 , 471409 , 471814 , 481663 , 481672 , 481679 , 491461 , 493806 , 496375 , 505092 , 508179 , 508494 , 516627 , 518438 , 535087 , 536972 , 558432 , 558439 , 584749 , 586651 , 603546 , 610717 , 630696 , 632399 , 636585 , 641481 , 641881 , 641914 , 644059 , 651026 , 653869 , 653876 , 654677 , 658146 , 675515 , 688104 , 715556 , 719896 , 720115 , 720127 , 732563 , 732993 , 733303 , 733557 , 741304 , 745181 , 750873 , 758829 , 768783 , 785667 , 790753 , 804508 , 808080 , 808298 , 820149 , 823538 , 823562 , 826530 );
Copy