4
8.14 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
814362
597165
543637
596163
749092
799685
772693
772675
814652
744638
772732
664271
630079
596653
753542
660749
533698
660729
640917
533548
533547
828843
402729
402726
818157
408989
402667
402700
387870
390858
402689
402693
427945
420264
413282
402721
805564
402673
400537
413309
427939
474738
384834
416245
415627
427975
493478
402716
420487
400556
402717
427978
400550
402662
402672
413298
478284
402676
427935
402670
402677
426065
446004
484487
650109
500798
559389
402683
402722
]
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 (814362 , 597165 , 543637 , 596163 , 749092 , 799685 , 772693 , 772675 , 814652 , 744638 , 772732 , 664271 , 630079 , 596653 , 753542 , 660749 , 533698 , 660729 , 640917 , 533548 , 533547 , 828843 , 402729 , 402726 , 818157 , 408989 , 402667 , 402700 , 387870 , 390858 , 402689 , 402693 , 427945 , 420264 , 413282 , 402721 , 805564 , 402673 , 400537 , 413309 , 427939 , 474738 , 384834 , 416245 , 415627 , 427975 , 493478 , 402716 , 420487 , 400556 , 402717 , 427978 , 400550 , 402662 , 402672 , 413298 , 478284 , 402676 , 427935 , 402670 , 402677 , 426065 , 446004 , 484487 , 650109 , 500798 , 559389 , 402683 , 402722 );
Copy
5
2.24 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
384834
387870
390858
400537
400550
400556
402662
402667
402670
402672
402673
402676
402677
402683
402689
402693
402700
402716
402717
402721
402722
402726
402729
408989
413282
413298
413309
415627
416245
420264
420487
426065
427935
427939
427945
427975
427978
446004
474738
478284
484487
493478
500798
533547
533548
533698
543637
559389
596163
596653
597165
630079
640917
650109
660729
660749
664271
744638
749092
753542
772675
772693
772732
799685
805564
814362
814652
818157
828843
]
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 (384834 , 387870 , 390858 , 400537 , 400550 , 400556 , 402662 , 402667 , 402670 , 402672 , 402673 , 402676 , 402677 , 402683 , 402689 , 402693 , 402700 , 402716 , 402717 , 402721 , 402722 , 402726 , 402729 , 408989 , 413282 , 413298 , 413309 , 415627 , 416245 , 420264 , 420487 , 426065 , 427935 , 427939 , 427945 , 427975 , 427978 , 446004 , 474738 , 478284 , 484487 , 493478 , 500798 , 533547 , 533548 , 533698 , 543637 , 559389 , 596163 , 596653 , 597165 , 630079 , 640917 , 650109 , 660729 , 660749 , 664271 , 744638 , 749092 , 753542 , 772675 , 772693 , 772732 , 799685 , 805564 , 814362 , 814652 , 818157 , 828843 );
Copy
6
82.79 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
384834
387870
390858
400537
400550
400556
402662
402667
402670
402672
402673
402676
402677
402683
402689
402693
402700
402716
402717
402721
402722
402726
402729
408989
413282
413298
413309
415627
416245
420264
420487
426065
427935
427939
427945
427975
427978
446004
474738
478284
484487
493478
500798
533547
533548
533698
543637
559389
596163
596653
597165
630079
640917
650109
660729
660749
664271
744638
749092
753542
772675
772693
772732
799685
805564
814362
814652
818157
828843
]
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 (384834 , 387870 , 390858 , 400537 , 400550 , 400556 , 402662 , 402667 , 402670 , 402672 , 402673 , 402676 , 402677 , 402683 , 402689 , 402693 , 402700 , 402716 , 402717 , 402721 , 402722 , 402726 , 402729 , 408989 , 413282 , 413298 , 413309 , 415627 , 416245 , 420264 , 420487 , 426065 , 427935 , 427939 , 427945 , 427975 , 427978 , 446004 , 474738 , 478284 , 484487 , 493478 , 500798 , 533547 , 533548 , 533698 , 543637 , 559389 , 596163 , 596653 , 597165 , 630079 , 640917 , 650109 , 660729 , 660749 , 664271 , 744638 , 749092 , 753542 , 772675 , 772693 , 772732 , 799685 , 805564 , 814362 , 814652 , 818157 , 828843 );
Copy