3
9.58 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
558431
589684
737119
737165
737136
569804
591592
601160
713197
765208
617861
742469
802831
737132
740764
737162
737105
740362
386699
740804
498620
354774
500680
810416
823615
457263
551947
421038
558429
556379
629111
515881
552008
750182
740771
434439
463752
504763
478025
162863
559852
556382
390925
552887
512198
512212
591836
622217
167822
590978
551982
167923
750816
432337
590925
447908
510584
515879
558425
559925
701744
565995
595765
504065
550640
652572
]
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 (558431 , 589684 , 737119 , 737165 , 737136 , 569804 , 591592 , 601160 , 713197 , 765208 , 617861 , 742469 , 802831 , 737132 , 740764 , 737162 , 737105 , 740362 , 386699 , 740804 , 498620 , 354774 , 500680 , 810416 , 823615 , 457263 , 551947 , 421038 , 558429 , 556379 , 629111 , 515881 , 552008 , 750182 , 740771 , 434439 , 463752 , 504763 , 478025 , 162863 , 559852 , 556382 , 390925 , 552887 , 512198 , 512212 , 591836 , 622217 , 167822 , 590978 , 551982 , 167923 , 750816 , 432337 , 590925 , 447908 , 510584 , 515879 , 558425 , 559925 , 701744 , 565995 , 595765 , 504065 , 550640 , 652572 );
Copy
4
2.50 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
162863
167822
167923
354774
386699
390925
421038
432337
434439
447908
457263
463752
478025
498620
500680
504065
504763
510584
512198
512212
515879
515881
550640
551947
551982
552008
552887
556379
556382
558425
558429
558431
559852
559925
565995
569804
589684
590925
590978
591592
591836
595765
601160
617861
622217
629111
652572
701744
713197
737105
737119
737132
737136
737162
737165
740362
740764
740771
740804
742469
750182
750816
765208
802831
810416
823615
]
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 (162863 , 167822 , 167923 , 354774 , 386699 , 390925 , 421038 , 432337 , 434439 , 447908 , 457263 , 463752 , 478025 , 498620 , 500680 , 504065 , 504763 , 510584 , 512198 , 512212 , 515879 , 515881 , 550640 , 551947 , 551982 , 552008 , 552887 , 556379 , 556382 , 558425 , 558429 , 558431 , 559852 , 559925 , 565995 , 569804 , 589684 , 590925 , 590978 , 591592 , 591836 , 595765 , 601160 , 617861 , 622217 , 629111 , 652572 , 701744 , 713197 , 737105 , 737119 , 737132 , 737136 , 737162 , 737165 , 740362 , 740764 , 740771 , 740804 , 742469 , 750182 , 750816 , 765208 , 802831 , 810416 , 823615 );
Copy
5
103.24 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
162863
167822
167923
354774
386699
390925
421038
432337
434439
447908
457263
463752
478025
498620
500680
504065
504763
510584
512198
512212
515879
515881
550640
551947
551982
552008
552887
556379
556382
558425
558429
558431
559852
559925
565995
569804
589684
590925
590978
591592
591836
595765
601160
617861
622217
629111
652572
701744
713197
737105
737119
737132
737136
737162
737165
740362
740764
740771
740804
742469
750182
750816
765208
802831
810416
823615
]
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 (162863 , 167822 , 167923 , 354774 , 386699 , 390925 , 421038 , 432337 , 434439 , 447908 , 457263 , 463752 , 478025 , 498620 , 500680 , 504065 , 504763 , 510584 , 512198 , 512212 , 515879 , 515881 , 550640 , 551947 , 551982 , 552008 , 552887 , 556379 , 556382 , 558425 , 558429 , 558431 , 559852 , 559925 , 565995 , 569804 , 589684 , 590925 , 590978 , 591592 , 591836 , 595765 , 601160 , 617861 , 622217 , 629111 , 652572 , 701744 , 713197 , 737105 , 737119 , 737132 , 737136 , 737162 , 737165 , 740362 , 740764 , 740771 , 740804 , 742469 , 750182 , 750816 , 765208 , 802831 , 810416 , 823615 );
Copy