3
11.98 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
817489
518592
820677
823369
644034
396316
557548
586433
823512
753422
52231
818777
588638
552022
506555
777069
464593
777075
461401
530317
559943
745929
719907
827304
506559
444386
461422
472131
478675
565370
638298
469840
525344
472134
524429
491456
406831
648549
777073
413991
685639
406800
454657
467178
520665
518266
685646
589796
589756
472129
491706
612044
448177
401232
418860
484252
510675
455193
619457
632356
520461
575457
487144
823486
454467
496593
550752
575716
551539
544296
]
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 (817489 , 518592 , 820677 , 823369 , 644034 , 396316 , 557548 , 586433 , 823512 , 753422 , 52231 , 818777 , 588638 , 552022 , 506555 , 777069 , 464593 , 777075 , 461401 , 530317 , 559943 , 745929 , 719907 , 827304 , 506559 , 444386 , 461422 , 472131 , 478675 , 565370 , 638298 , 469840 , 525344 , 472134 , 524429 , 491456 , 406831 , 648549 , 777073 , 413991 , 685639 , 406800 , 454657 , 467178 , 520665 , 518266 , 685646 , 589796 , 589756 , 472129 , 491706 , 612044 , 448177 , 401232 , 418860 , 484252 , 510675 , 455193 , 619457 , 632356 , 520461 , 575457 , 487144 , 823486 , 454467 , 496593 , 550752 , 575716 , 551539 , 544296 );
Copy
4
3.16 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
52231
396316
401232
406800
406831
413991
418860
444386
448177
454467
454657
455193
461401
461422
464593
467178
469840
472129
472131
472134
478675
484252
487144
491456
491706
496593
506555
506559
510675
518266
518592
520461
520665
524429
525344
530317
544296
550752
551539
552022
557548
559943
565370
575457
575716
586433
588638
589756
589796
612044
619457
632356
638298
644034
648549
685639
685646
719907
745929
753422
777069
777073
777075
817489
818777
820677
823369
823486
823512
827304
]
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 (52231 , 396316 , 401232 , 406800 , 406831 , 413991 , 418860 , 444386 , 448177 , 454467 , 454657 , 455193 , 461401 , 461422 , 464593 , 467178 , 469840 , 472129 , 472131 , 472134 , 478675 , 484252 , 487144 , 491456 , 491706 , 496593 , 506555 , 506559 , 510675 , 518266 , 518592 , 520461 , 520665 , 524429 , 525344 , 530317 , 544296 , 550752 , 551539 , 552022 , 557548 , 559943 , 565370 , 575457 , 575716 , 586433 , 588638 , 589756 , 589796 , 612044 , 619457 , 632356 , 638298 , 644034 , 648549 , 685639 , 685646 , 719907 , 745929 , 753422 , 777069 , 777073 , 777075 , 817489 , 818777 , 820677 , 823369 , 823486 , 823512 , 827304 );
Copy
5
85.54 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
52231
396316
401232
406800
406831
413991
418860
444386
448177
454467
454657
455193
461401
461422
464593
467178
469840
472129
472131
472134
478675
484252
487144
491456
491706
496593
506555
506559
510675
518266
518592
520461
520665
524429
525344
530317
544296
550752
551539
552022
557548
559943
565370
575457
575716
586433
588638
589756
589796
612044
619457
632356
638298
644034
648549
685639
685646
719907
745929
753422
777069
777073
777075
817489
818777
820677
823369
823486
823512
827304
]
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 (52231 , 396316 , 401232 , 406800 , 406831 , 413991 , 418860 , 444386 , 448177 , 454467 , 454657 , 455193 , 461401 , 461422 , 464593 , 467178 , 469840 , 472129 , 472131 , 472134 , 478675 , 484252 , 487144 , 491456 , 491706 , 496593 , 506555 , 506559 , 510675 , 518266 , 518592 , 520461 , 520665 , 524429 , 525344 , 530317 , 544296 , 550752 , 551539 , 552022 , 557548 , 559943 , 565370 , 575457 , 575716 , 586433 , 588638 , 589756 , 589796 , 612044 , 619457 , 632356 , 638298 , 644034 , 648549 , 685639 , 685646 , 719907 , 745929 , 753422 , 777069 , 777073 , 777075 , 817489 , 818777 , 820677 , 823369 , 823486 , 823512 , 827304 );
Copy