3
9.28 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
534667
27514
539609
736488
468948
534344
576757
534361
534366
550027
717595
558752
517407
534634
760898
387391
383948
534628
558452
544454
530094
557255
795308
803841
680933
680945
768057
551038
562372
465432
809736
486842
644198
468926
468947
680946
621041
738433
670526
534335
774343
459171
736494
488233
774350
598648
454706
534346
418567
457735
456896
457778
495871
828285
615722
457043
828172
549521
457783
457668
457782
457643
549298
414184
454669
]
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 (534667 , 27514 , 539609 , 736488 , 468948 , 534344 , 576757 , 534361 , 534366 , 550027 , 717595 , 558752 , 517407 , 534634 , 760898 , 387391 , 383948 , 534628 , 558452 , 544454 , 530094 , 557255 , 795308 , 803841 , 680933 , 680945 , 768057 , 551038 , 562372 , 465432 , 809736 , 486842 , 644198 , 468926 , 468947 , 680946 , 621041 , 738433 , 670526 , 534335 , 774343 , 459171 , 736494 , 488233 , 774350 , 598648 , 454706 , 534346 , 418567 , 457735 , 456896 , 457778 , 495871 , 828285 , 615722 , 457043 , 828172 , 549521 , 457783 , 457668 , 457782 , 457643 , 549298 , 414184 , 454669 );
Copy
4
3.61 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
27514
383948
387391
414184
418567
454669
454706
456896
457043
457643
457668
457735
457778
457782
457783
459171
465432
468926
468947
468948
486842
488233
495871
517407
530094
534335
534344
534346
534361
534366
534628
534634
534667
539609
544454
549298
549521
550027
551038
557255
558452
558752
562372
576757
598648
615722
621041
644198
670526
680933
680945
680946
717595
736488
736494
738433
760898
768057
774343
774350
795308
803841
809736
828172
828285
]
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 (27514 , 383948 , 387391 , 414184 , 418567 , 454669 , 454706 , 456896 , 457043 , 457643 , 457668 , 457735 , 457778 , 457782 , 457783 , 459171 , 465432 , 468926 , 468947 , 468948 , 486842 , 488233 , 495871 , 517407 , 530094 , 534335 , 534344 , 534346 , 534361 , 534366 , 534628 , 534634 , 534667 , 539609 , 544454 , 549298 , 549521 , 550027 , 551038 , 557255 , 558452 , 558752 , 562372 , 576757 , 598648 , 615722 , 621041 , 644198 , 670526 , 680933 , 680945 , 680946 , 717595 , 736488 , 736494 , 738433 , 760898 , 768057 , 774343 , 774350 , 795308 , 803841 , 809736 , 828172 , 828285 );
Copy
5
142.22 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
27514
383948
387391
414184
418567
454669
454706
456896
457043
457643
457668
457735
457778
457782
457783
459171
465432
468926
468947
468948
486842
488233
495871
517407
530094
534335
534344
534346
534361
534366
534628
534634
534667
539609
544454
549298
549521
550027
551038
557255
558452
558752
562372
576757
598648
615722
621041
644198
670526
680933
680945
680946
717595
736488
736494
738433
760898
768057
774343
774350
795308
803841
809736
828172
828285
]
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 (27514 , 383948 , 387391 , 414184 , 418567 , 454669 , 454706 , 456896 , 457043 , 457643 , 457668 , 457735 , 457778 , 457782 , 457783 , 459171 , 465432 , 468926 , 468947 , 468948 , 486842 , 488233 , 495871 , 517407 , 530094 , 534335 , 534344 , 534346 , 534361 , 534366 , 534628 , 534634 , 534667 , 539609 , 544454 , 549298 , 549521 , 550027 , 551038 , 557255 , 558452 , 558752 , 562372 , 576757 , 598648 , 615722 , 621041 , 644198 , 670526 , 680933 , 680945 , 680946 , 717595 , 736488 , 736494 , 738433 , 760898 , 768057 , 774343 , 774350 , 795308 , 803841 , 809736 , 828172 , 828285 );
Copy