3
12.00 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
434747
399908
65700
227502
399015
475777
357977
491617
401430
419091
736333
397135
468229
500743
221647
476303
427053
444397
399598
445948
498463
645691
309276
204992
463779
7891
386068
395951
462498
510737
402523
452346
418995
455714
508900
521202
390070
481796
569527
400407
191495
429083
502660
526313
513924
417110
469772
449822
471314
460120
491625
477424
591428
671075
514327
444996
561853
547569
612857
447178
603092
601886
651954
619888
608737
477867
536924
614745
]
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 (434747 , 399908 , 65700 , 227502 , 399015 , 475777 , 357977 , 491617 , 401430 , 419091 , 736333 , 397135 , 468229 , 500743 , 221647 , 476303 , 427053 , 444397 , 399598 , 445948 , 498463 , 645691 , 309276 , 204992 , 463779 , 7891 , 386068 , 395951 , 462498 , 510737 , 402523 , 452346 , 418995 , 455714 , 508900 , 521202 , 390070 , 481796 , 569527 , 400407 , 191495 , 429083 , 502660 , 526313 , 513924 , 417110 , 469772 , 449822 , 471314 , 460120 , 491625 , 477424 , 591428 , 671075 , 514327 , 444996 , 561853 , 547569 , 612857 , 447178 , 603092 , 601886 , 651954 , 619888 , 608737 , 477867 , 536924 , 614745 );
Copy
4
2.45 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
7891
65700
191495
204992
221647
227502
309276
357977
386068
390070
395951
397135
399015
399598
399908
400407
401430
402523
417110
418995
419091
427053
429083
434747
444397
444996
445948
447178
449822
452346
455714
460120
462498
463779
468229
469772
471314
475777
476303
477424
477867
481796
491617
491625
498463
500743
502660
508900
510737
513924
514327
521202
526313
536924
547569
561853
569527
591428
601886
603092
608737
612857
614745
619888
645691
651954
671075
736333
]
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 (7891 , 65700 , 191495 , 204992 , 221647 , 227502 , 309276 , 357977 , 386068 , 390070 , 395951 , 397135 , 399015 , 399598 , 399908 , 400407 , 401430 , 402523 , 417110 , 418995 , 419091 , 427053 , 429083 , 434747 , 444397 , 444996 , 445948 , 447178 , 449822 , 452346 , 455714 , 460120 , 462498 , 463779 , 468229 , 469772 , 471314 , 475777 , 476303 , 477424 , 477867 , 481796 , 491617 , 491625 , 498463 , 500743 , 502660 , 508900 , 510737 , 513924 , 514327 , 521202 , 526313 , 536924 , 547569 , 561853 , 569527 , 591428 , 601886 , 603092 , 608737 , 612857 , 614745 , 619888 , 645691 , 651954 , 671075 , 736333 );
Copy
5
81.19 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
7891
65700
191495
204992
221647
227502
309276
357977
386068
390070
395951
397135
399015
399598
399908
400407
401430
402523
417110
418995
419091
427053
429083
434747
444397
444996
445948
447178
449822
452346
455714
460120
462498
463779
468229
469772
471314
475777
476303
477424
477867
481796
491617
491625
498463
500743
502660
508900
510737
513924
514327
521202
526313
536924
547569
561853
569527
591428
601886
603092
608737
612857
614745
619888
645691
651954
671075
736333
]
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 (7891 , 65700 , 191495 , 204992 , 221647 , 227502 , 309276 , 357977 , 386068 , 390070 , 395951 , 397135 , 399015 , 399598 , 399908 , 400407 , 401430 , 402523 , 417110 , 418995 , 419091 , 427053 , 429083 , 434747 , 444397 , 444996 , 445948 , 447178 , 449822 , 452346 , 455714 , 460120 , 462498 , 463779 , 468229 , 469772 , 471314 , 475777 , 476303 , 477424 , 477867 , 481796 , 491617 , 491625 , 498463 , 500743 , 502660 , 508900 , 510737 , 513924 , 514327 , 521202 , 526313 , 536924 , 547569 , 561853 , 569527 , 591428 , 601886 , 603092 , 608737 , 612857 , 614745 , 619888 , 645691 , 651954 , 671075 , 736333 );
Copy