3
12.36 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
527375
415005
453362
499628
519455
526188
501598
472904
565243
660060
565170
616617
623920
612831
599299
599345
633744
450630
463024
491169
490507
497569
530694
508430
538963
395291
814235
463082
532345
529846
565254
547974
548304
568580
583960
558543
631972
593729
633114
431913
451786
447803
454584
478832
444542
472299
489315
537207
521526
495665
540217
509997
568078
565259
597204
589344
612856
477097
404629
632020
598844
565276
600084
586633
448816
525965
550829
557236
489438
652281
]
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 (527375 , 415005 , 453362 , 499628 , 519455 , 526188 , 501598 , 472904 , 565243 , 660060 , 565170 , 616617 , 623920 , 612831 , 599299 , 599345 , 633744 , 450630 , 463024 , 491169 , 490507 , 497569 , 530694 , 508430 , 538963 , 395291 , 814235 , 463082 , 532345 , 529846 , 565254 , 547974 , 548304 , 568580 , 583960 , 558543 , 631972 , 593729 , 633114 , 431913 , 451786 , 447803 , 454584 , 478832 , 444542 , 472299 , 489315 , 537207 , 521526 , 495665 , 540217 , 509997 , 568078 , 565259 , 597204 , 589344 , 612856 , 477097 , 404629 , 632020 , 598844 , 565276 , 600084 , 586633 , 448816 , 525965 , 550829 , 557236 , 489438 , 652281 );
Copy
4
3.20 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
395291
404629
415005
431913
444542
447803
448816
450630
451786
453362
454584
463024
463082
472299
472904
477097
478832
489315
489438
490507
491169
495665
497569
499628
501598
508430
509997
519455
521526
525965
526188
527375
529846
530694
532345
537207
538963
540217
547974
548304
550829
557236
558543
565170
565243
565254
565259
565276
568078
568580
583960
586633
589344
593729
597204
598844
599299
599345
600084
612831
612856
616617
623920
631972
632020
633114
633744
652281
660060
814235
]
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 (395291 , 404629 , 415005 , 431913 , 444542 , 447803 , 448816 , 450630 , 451786 , 453362 , 454584 , 463024 , 463082 , 472299 , 472904 , 477097 , 478832 , 489315 , 489438 , 490507 , 491169 , 495665 , 497569 , 499628 , 501598 , 508430 , 509997 , 519455 , 521526 , 525965 , 526188 , 527375 , 529846 , 530694 , 532345 , 537207 , 538963 , 540217 , 547974 , 548304 , 550829 , 557236 , 558543 , 565170 , 565243 , 565254 , 565259 , 565276 , 568078 , 568580 , 583960 , 586633 , 589344 , 593729 , 597204 , 598844 , 599299 , 599345 , 600084 , 612831 , 612856 , 616617 , 623920 , 631972 , 632020 , 633114 , 633744 , 652281 , 660060 , 814235 );
Copy
5
109.15 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
395291
404629
415005
431913
444542
447803
448816
450630
451786
453362
454584
463024
463082
472299
472904
477097
478832
489315
489438
490507
491169
495665
497569
499628
501598
508430
509997
519455
521526
525965
526188
527375
529846
530694
532345
537207
538963
540217
547974
548304
550829
557236
558543
565170
565243
565254
565259
565276
568078
568580
583960
586633
589344
593729
597204
598844
599299
599345
600084
612831
612856
616617
623920
631972
632020
633114
633744
652281
660060
814235
]
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 (395291 , 404629 , 415005 , 431913 , 444542 , 447803 , 448816 , 450630 , 451786 , 453362 , 454584 , 463024 , 463082 , 472299 , 472904 , 477097 , 478832 , 489315 , 489438 , 490507 , 491169 , 495665 , 497569 , 499628 , 501598 , 508430 , 509997 , 519455 , 521526 , 525965 , 526188 , 527375 , 529846 , 530694 , 532345 , 537207 , 538963 , 540217 , 547974 , 548304 , 550829 , 557236 , 558543 , 565170 , 565243 , 565254 , 565259 , 565276 , 568078 , 568580 , 583960 , 586633 , 589344 , 593729 , 597204 , 598844 , 599299 , 599345 , 600084 , 612831 , 612856 , 616617 , 623920 , 631972 , 632020 , 633114 , 633744 , 652281 , 660060 , 814235 );
Copy