3
12.57 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
824020
802402
823916
706339
800205
532054
532051
474789
617677
148101
724706
748239
446282
567430
710578
772463
420540
718560
748892
813920
714752
726831
728291
736393
428822
395556
439569
446622
458012
464389
550223
743811
800190
443692
454257
523902
617190
415567
443158
479038
565982
566928
429552
443801
460601
514441
520916
519931
443935
474097
550219
610087
460751
439560
429586
523907
518834
646199
432807
474800
439616
512516
563450
439680
563218
474784
428202
439623
]
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 (824020 , 802402 , 823916 , 706339 , 800205 , 532054 , 532051 , 474789 , 617677 , 148101 , 724706 , 748239 , 446282 , 567430 , 710578 , 772463 , 420540 , 718560 , 748892 , 813920 , 714752 , 726831 , 728291 , 736393 , 428822 , 395556 , 439569 , 446622 , 458012 , 464389 , 550223 , 743811 , 800190 , 443692 , 454257 , 523902 , 617190 , 415567 , 443158 , 479038 , 565982 , 566928 , 429552 , 443801 , 460601 , 514441 , 520916 , 519931 , 443935 , 474097 , 550219 , 610087 , 460751 , 439560 , 429586 , 523907 , 518834 , 646199 , 432807 , 474800 , 439616 , 512516 , 563450 , 439680 , 563218 , 474784 , 428202 , 439623 );
Copy
4
3.01 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
148101
395556
415567
420540
428202
428822
429552
429586
432807
439560
439569
439616
439623
439680
443158
443692
443801
443935
446282
446622
454257
458012
460601
460751
464389
474097
474784
474789
474800
479038
512516
514441
518834
519931
520916
523902
523907
532051
532054
550219
550223
563218
563450
565982
566928
567430
610087
617190
617677
646199
706339
710578
714752
718560
724706
726831
728291
736393
743811
748239
748892
772463
800190
800205
802402
813920
823916
]
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 (148101 , 395556 , 415567 , 420540 , 428202 , 428822 , 429552 , 429586 , 432807 , 439560 , 439569 , 439616 , 439623 , 439680 , 443158 , 443692 , 443801 , 443935 , 446282 , 446622 , 454257 , 458012 , 460601 , 460751 , 464389 , 474097 , 474784 , 474789 , 474800 , 479038 , 512516 , 514441 , 518834 , 519931 , 520916 , 523902 , 523907 , 532051 , 532054 , 550219 , 550223 , 563218 , 563450 , 565982 , 566928 , 567430 , 610087 , 617190 , 617677 , 646199 , 706339 , 710578 , 714752 , 718560 , 724706 , 726831 , 728291 , 736393 , 743811 , 748239 , 748892 , 772463 , 800190 , 800205 , 802402 , 813920 , 823916 );
Copy
5
76.52 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
148101
395556
415567
420540
428202
428822
429552
429586
432807
439560
439569
439616
439623
439680
443158
443692
443801
443935
446282
446622
454257
458012
460601
460751
464389
474097
474784
474789
474800
479038
512516
514441
518834
519931
520916
523902
523907
532051
532054
550219
550223
563218
563450
565982
566928
567430
610087
617190
617677
646199
706339
710578
714752
718560
724706
726831
728291
736393
743811
748239
748892
772463
800190
800205
802402
813920
823916
]
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 (148101 , 395556 , 415567 , 420540 , 428202 , 428822 , 429552 , 429586 , 432807 , 439560 , 439569 , 439616 , 439623 , 439680 , 443158 , 443692 , 443801 , 443935 , 446282 , 446622 , 454257 , 458012 , 460601 , 460751 , 464389 , 474097 , 474784 , 474789 , 474800 , 479038 , 512516 , 514441 , 518834 , 519931 , 520916 , 523902 , 523907 , 532051 , 532054 , 550219 , 550223 , 563218 , 563450 , 565982 , 566928 , 567430 , 610087 , 617190 , 617677 , 646199 , 706339 , 710578 , 714752 , 718560 , 724706 , 726831 , 728291 , 736393 , 743811 , 748239 , 748892 , 772463 , 800190 , 800205 , 802402 , 813920 , 823916 );
Copy