3
10.78 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
477500
766306
477503
577653
527372
496067
460896
581124
490788
540233
603310
481278
474061
497515
570149
390929
504906
623604
497422
536387
605746
577030
563096
427024
522241
512627
583892
499861
494911
510344
504741
411664
602754
471061
566071
680992
561455
527859
514273
580285
568819
574257
437929
538949
542084
533131
506452
467668
563173
508348
525485
609794
526936
562839
546370
565740
655322
653249
653544
549248
598807
623026
529216
578399
]
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 (477500 , 766306 , 477503 , 577653 , 527372 , 496067 , 460896 , 581124 , 490788 , 540233 , 603310 , 481278 , 474061 , 497515 , 570149 , 390929 , 504906 , 623604 , 497422 , 536387 , 605746 , 577030 , 563096 , 427024 , 522241 , 512627 , 583892 , 499861 , 494911 , 510344 , 504741 , 411664 , 602754 , 471061 , 566071 , 680992 , 561455 , 527859 , 514273 , 580285 , 568819 , 574257 , 437929 , 538949 , 542084 , 533131 , 506452 , 467668 , 563173 , 508348 , 525485 , 609794 , 526936 , 562839 , 546370 , 565740 , 655322 , 653249 , 653544 , 549248 , 598807 , 623026 , 529216 , 578399 );
Copy
4
2.15 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
390929
411664
427024
437929
460896
467668
471061
474061
477500
477503
481278
490788
494911
496067
497422
497515
499861
504741
504906
506452
508348
510344
512627
514273
522241
525485
526936
527372
527859
529216
533131
536387
538949
540233
542084
546370
549248
561455
562839
563096
563173
565740
566071
568819
570149
574257
577030
577653
578399
580285
581124
583892
598807
602754
603310
605746
609794
623026
623604
653249
653544
655322
680992
766306
]
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 (390929 , 411664 , 427024 , 437929 , 460896 , 467668 , 471061 , 474061 , 477500 , 477503 , 481278 , 490788 , 494911 , 496067 , 497422 , 497515 , 499861 , 504741 , 504906 , 506452 , 508348 , 510344 , 512627 , 514273 , 522241 , 525485 , 526936 , 527372 , 527859 , 529216 , 533131 , 536387 , 538949 , 540233 , 542084 , 546370 , 549248 , 561455 , 562839 , 563096 , 563173 , 565740 , 566071 , 568819 , 570149 , 574257 , 577030 , 577653 , 578399 , 580285 , 581124 , 583892 , 598807 , 602754 , 603310 , 605746 , 609794 , 623026 , 623604 , 653249 , 653544 , 655322 , 680992 , 766306 );
Copy
5
108.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
390929
411664
427024
437929
460896
467668
471061
474061
477500
477503
481278
490788
494911
496067
497422
497515
499861
504741
504906
506452
508348
510344
512627
514273
522241
525485
526936
527372
527859
529216
533131
536387
538949
540233
542084
546370
549248
561455
562839
563096
563173
565740
566071
568819
570149
574257
577030
577653
578399
580285
581124
583892
598807
602754
603310
605746
609794
623026
623604
653249
653544
655322
680992
766306
]
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 (390929 , 411664 , 427024 , 437929 , 460896 , 467668 , 471061 , 474061 , 477500 , 477503 , 481278 , 490788 , 494911 , 496067 , 497422 , 497515 , 499861 , 504741 , 504906 , 506452 , 508348 , 510344 , 512627 , 514273 , 522241 , 525485 , 526936 , 527372 , 527859 , 529216 , 533131 , 536387 , 538949 , 540233 , 542084 , 546370 , 549248 , 561455 , 562839 , 563096 , 563173 , 565740 , 566071 , 568819 , 570149 , 574257 , 577030 , 577653 , 578399 , 580285 , 581124 , 583892 , 598807 , 602754 , 603310 , 605746 , 609794 , 623026 , 623604 , 653249 , 653544 , 655322 , 680992 , 766306 );
Copy