3
10.32 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
528697
716221
534003
390580
823444
774144
826552
445644
712987
823639
716160
818638
828184
565764
187450
535053
725569
386727
804010
620480
823640
583564
795782
789458
710412
537665
596704
789469
804308
724084
807773
726805
502742
813834
517517
804109
732964
730953
460618
580940
431120
465193
448704
534603
534990
565771
523761
420134
482219
565773
675405
565687
726718
802826
728035
493097
441448
449939
532726
585361
428131
424302
481844
523049
419123
528435
]
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 (528697 , 716221 , 534003 , 390580 , 823444 , 774144 , 826552 , 445644 , 712987 , 823639 , 716160 , 818638 , 828184 , 565764 , 187450 , 535053 , 725569 , 386727 , 804010 , 620480 , 823640 , 583564 , 795782 , 789458 , 710412 , 537665 , 596704 , 789469 , 804308 , 724084 , 807773 , 726805 , 502742 , 813834 , 517517 , 804109 , 732964 , 730953 , 460618 , 580940 , 431120 , 465193 , 448704 , 534603 , 534990 , 565771 , 523761 , 420134 , 482219 , 565773 , 675405 , 565687 , 726718 , 802826 , 728035 , 493097 , 441448 , 449939 , 532726 , 585361 , 428131 , 424302 , 481844 , 523049 , 419123 , 528435 );
Copy
4
2.85 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
187450
386727
390580
419123
420134
424302
428131
431120
441448
445644
448704
449939
460618
465193
481844
482219
493097
502742
517517
523049
523761
528435
528697
532726
534003
534603
534990
535053
537665
565687
565764
565771
565773
580940
583564
585361
596704
620480
675405
710412
712987
716160
716221
724084
725569
726718
726805
728035
730953
732964
774144
789458
789469
795782
802826
804010
804109
804308
807773
813834
818638
823444
823639
823640
826552
828184
]
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 (187450 , 386727 , 390580 , 419123 , 420134 , 424302 , 428131 , 431120 , 441448 , 445644 , 448704 , 449939 , 460618 , 465193 , 481844 , 482219 , 493097 , 502742 , 517517 , 523049 , 523761 , 528435 , 528697 , 532726 , 534003 , 534603 , 534990 , 535053 , 537665 , 565687 , 565764 , 565771 , 565773 , 580940 , 583564 , 585361 , 596704 , 620480 , 675405 , 710412 , 712987 , 716160 , 716221 , 724084 , 725569 , 726718 , 726805 , 728035 , 730953 , 732964 , 774144 , 789458 , 789469 , 795782 , 802826 , 804010 , 804109 , 804308 , 807773 , 813834 , 818638 , 823444 , 823639 , 823640 , 826552 , 828184 );
Copy
5
69.13 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
187450
386727
390580
419123
420134
424302
428131
431120
441448
445644
448704
449939
460618
465193
481844
482219
493097
502742
517517
523049
523761
528435
528697
532726
534003
534603
534990
535053
537665
565687
565764
565771
565773
580940
583564
585361
596704
620480
675405
710412
712987
716160
716221
724084
725569
726718
726805
728035
730953
732964
774144
789458
789469
795782
802826
804010
804109
804308
807773
813834
818638
823444
823639
823640
826552
828184
]
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 (187450 , 386727 , 390580 , 419123 , 420134 , 424302 , 428131 , 431120 , 441448 , 445644 , 448704 , 449939 , 460618 , 465193 , 481844 , 482219 , 493097 , 502742 , 517517 , 523049 , 523761 , 528435 , 528697 , 532726 , 534003 , 534603 , 534990 , 535053 , 537665 , 565687 , 565764 , 565771 , 565773 , 580940 , 583564 , 585361 , 596704 , 620480 , 675405 , 710412 , 712987 , 716160 , 716221 , 724084 , 725569 , 726718 , 726805 , 728035 , 730953 , 732964 , 774144 , 789458 , 789469 , 795782 , 802826 , 804010 , 804109 , 804308 , 807773 , 813834 , 818638 , 823444 , 823639 , 823640 , 826552 , 828184 );
Copy