4
11.61 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
529262
458558
517557
541048
561894
669936
450659
615923
690932
547755
437934
488240
553398
609419
442384
516250
681382
526154
555285
559203
583807
597645
630328
619772
420696
416963
534212
489046
565349
485336
529898
535707
529905
480067
588971
389899
463761
507107
512203
676417
548023
529272
585425
502059
586745
541605
622734
508386
417631
694269
735179
789060
566566
463122
584488
537998
661256
414781
792372
622011
777894
528365
577640
620756
472105
541144
547745
534342
]
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 (529262 , 458558 , 517557 , 541048 , 561894 , 669936 , 450659 , 615923 , 690932 , 547755 , 437934 , 488240 , 553398 , 609419 , 442384 , 516250 , 681382 , 526154 , 555285 , 559203 , 583807 , 597645 , 630328 , 619772 , 420696 , 416963 , 534212 , 489046 , 565349 , 485336 , 529898 , 535707 , 529905 , 480067 , 588971 , 389899 , 463761 , 507107 , 512203 , 676417 , 548023 , 529272 , 585425 , 502059 , 586745 , 541605 , 622734 , 508386 , 417631 , 694269 , 735179 , 789060 , 566566 , 463122 , 584488 , 537998 , 661256 , 414781 , 792372 , 622011 , 777894 , 528365 , 577640 , 620756 , 472105 , 541144 , 547745 , 534342 );
Copy
5
2.58 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
389899
414781
416963
417631
420696
437934
442384
450659
458558
463122
463761
472105
480067
485336
488240
489046
502059
507107
508386
512203
516250
517557
526154
528365
529262
529272
529898
529905
534212
534342
535707
537998
541048
541144
541605
547745
547755
548023
553398
555285
559203
561894
565349
566566
577640
583807
584488
585425
586745
588971
597645
609419
615923
619772
620756
622011
622734
630328
661256
669936
676417
681382
690932
694269
735179
777894
789060
792372
]
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 (389899 , 414781 , 416963 , 417631 , 420696 , 437934 , 442384 , 450659 , 458558 , 463122 , 463761 , 472105 , 480067 , 485336 , 488240 , 489046 , 502059 , 507107 , 508386 , 512203 , 516250 , 517557 , 526154 , 528365 , 529262 , 529272 , 529898 , 529905 , 534212 , 534342 , 535707 , 537998 , 541048 , 541144 , 541605 , 547745 , 547755 , 548023 , 553398 , 555285 , 559203 , 561894 , 565349 , 566566 , 577640 , 583807 , 584488 , 585425 , 586745 , 588971 , 597645 , 609419 , 615923 , 619772 , 620756 , 622011 , 622734 , 630328 , 661256 , 669936 , 676417 , 681382 , 690932 , 694269 , 735179 , 777894 , 789060 , 792372 );
Copy
6
215.93 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
389899
414781
416963
417631
420696
437934
442384
450659
458558
463122
463761
472105
480067
485336
488240
489046
502059
507107
508386
512203
516250
517557
526154
528365
529262
529272
529898
529905
534212
534342
535707
537998
541048
541144
541605
547745
547755
548023
553398
555285
559203
561894
565349
566566
577640
583807
584488
585425
586745
588971
597645
609419
615923
619772
620756
622011
622734
630328
661256
669936
676417
681382
690932
694269
735179
777894
789060
792372
]
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 (389899 , 414781 , 416963 , 417631 , 420696 , 437934 , 442384 , 450659 , 458558 , 463122 , 463761 , 472105 , 480067 , 485336 , 488240 , 489046 , 502059 , 507107 , 508386 , 512203 , 516250 , 517557 , 526154 , 528365 , 529262 , 529272 , 529898 , 529905 , 534212 , 534342 , 535707 , 537998 , 541048 , 541144 , 541605 , 547745 , 547755 , 548023 , 553398 , 555285 , 559203 , 561894 , 565349 , 566566 , 577640 , 583807 , 584488 , 585425 , 586745 , 588971 , 597645 , 609419 , 615923 , 619772 , 620756 , 622011 , 622734 , 630328 , 661256 , 669936 , 676417 , 681382 , 690932 , 694269 , 735179 , 777894 , 789060 , 792372 );
Copy