3
16.21 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
549206
456832
443470
445667
445666
450146
474821
548067
471067
464658
580365
489956
474826
738310
452637
259942
413461
796723
463825
714166
495038
472593
615631
643071
454225
450143
465343
593535
493190
552058
593532
784261
70131
413454
465156
467054
550325
574384
613462
483360
472682
559062
475294
472645
577127
789693
571135
464965
470762
548231
738367
488894
483152
486432
489831
390447
463846
466801
551931
488937
451950
529315
443807
466331
465317
525484
496548
554973
]
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 (549206 , 456832 , 443470 , 445667 , 445666 , 450146 , 474821 , 548067 , 471067 , 464658 , 580365 , 489956 , 474826 , 738310 , 452637 , 259942 , 413461 , 796723 , 463825 , 714166 , 495038 , 472593 , 615631 , 643071 , 454225 , 450143 , 465343 , 593535 , 493190 , 552058 , 593532 , 784261 , 70131 , 413454 , 465156 , 467054 , 550325 , 574384 , 613462 , 483360 , 472682 , 559062 , 475294 , 472645 , 577127 , 789693 , 571135 , 464965 , 470762 , 548231 , 738367 , 488894 , 483152 , 486432 , 489831 , 390447 , 463846 , 466801 , 551931 , 488937 , 451950 , 529315 , 443807 , 466331 , 465317 , 525484 , 496548 , 554973 );
Copy
4
2.48 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
70131
259942
390447
413454
413461
443470
443807
445666
445667
450143
450146
451950
452637
454225
456832
463825
463846
464658
464965
465156
465317
465343
466331
466801
467054
470762
471067
472593
472645
472682
474821
474826
475294
483152
483360
486432
488894
488937
489831
489956
493190
495038
496548
525484
529315
548067
548231
549206
550325
551931
552058
554973
559062
571135
574384
577127
580365
593532
593535
613462
615631
643071
714166
738310
738367
784261
789693
796723
]
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 (70131 , 259942 , 390447 , 413454 , 413461 , 443470 , 443807 , 445666 , 445667 , 450143 , 450146 , 451950 , 452637 , 454225 , 456832 , 463825 , 463846 , 464658 , 464965 , 465156 , 465317 , 465343 , 466331 , 466801 , 467054 , 470762 , 471067 , 472593 , 472645 , 472682 , 474821 , 474826 , 475294 , 483152 , 483360 , 486432 , 488894 , 488937 , 489831 , 489956 , 493190 , 495038 , 496548 , 525484 , 529315 , 548067 , 548231 , 549206 , 550325 , 551931 , 552058 , 554973 , 559062 , 571135 , 574384 , 577127 , 580365 , 593532 , 593535 , 613462 , 615631 , 643071 , 714166 , 738310 , 738367 , 784261 , 789693 , 796723 );
Copy
5
99.58 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
70131
259942
390447
413454
413461
443470
443807
445666
445667
450143
450146
451950
452637
454225
456832
463825
463846
464658
464965
465156
465317
465343
466331
466801
467054
470762
471067
472593
472645
472682
474821
474826
475294
483152
483360
486432
488894
488937
489831
489956
493190
495038
496548
525484
529315
548067
548231
549206
550325
551931
552058
554973
559062
571135
574384
577127
580365
593532
593535
613462
615631
643071
714166
738310
738367
784261
789693
796723
]
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 (70131 , 259942 , 390447 , 413454 , 413461 , 443470 , 443807 , 445666 , 445667 , 450143 , 450146 , 451950 , 452637 , 454225 , 456832 , 463825 , 463846 , 464658 , 464965 , 465156 , 465317 , 465343 , 466331 , 466801 , 467054 , 470762 , 471067 , 472593 , 472645 , 472682 , 474821 , 474826 , 475294 , 483152 , 483360 , 486432 , 488894 , 488937 , 489831 , 489956 , 493190 , 495038 , 496548 , 525484 , 529315 , 548067 , 548231 , 549206 , 550325 , 551931 , 552058 , 554973 , 559062 , 571135 , 574384 , 577127 , 580365 , 593532 , 593535 , 613462 , 615631 , 643071 , 714166 , 738310 , 738367 , 784261 , 789693 , 796723 );
Copy