4
15.46 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
605524
640525
634867
429460
468106
396404
452901
452933
422444
467383
472313
421415
513070
501718
509292
511762
525399
429909
536865
507696
496017
478533
576056
578463
470539
496024
442691
459784
515892
511492
550604
553545
599295
595568
474652
425910
517865
489373
484674
484705
508737
512320
514897
585144
542580
608772
603218
493121
483542
704205
647905
596871
632258
496270
504376
447426
603150
803455
492111
647948
591267
601917
632642
601967
411245
516684
529794
639751
468446
]
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 (605524 , 640525 , 634867 , 429460 , 468106 , 396404 , 452901 , 452933 , 422444 , 467383 , 472313 , 421415 , 513070 , 501718 , 509292 , 511762 , 525399 , 429909 , 536865 , 507696 , 496017 , 478533 , 576056 , 578463 , 470539 , 496024 , 442691 , 459784 , 515892 , 511492 , 550604 , 553545 , 599295 , 595568 , 474652 , 425910 , 517865 , 489373 , 484674 , 484705 , 508737 , 512320 , 514897 , 585144 , 542580 , 608772 , 603218 , 493121 , 483542 , 704205 , 647905 , 596871 , 632258 , 496270 , 504376 , 447426 , 603150 , 803455 , 492111 , 647948 , 591267 , 601917 , 632642 , 601967 , 411245 , 516684 , 529794 , 639751 , 468446 );
Copy
5
3.16 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
396404
411245
421415
422444
425910
429460
429909
442691
447426
452901
452933
459784
467383
468106
468446
470539
472313
474652
478533
483542
484674
484705
489373
492111
493121
496017
496024
496270
501718
504376
507696
508737
509292
511492
511762
512320
513070
514897
515892
516684
517865
525399
529794
536865
542580
550604
553545
576056
578463
585144
591267
595568
596871
599295
601917
601967
603150
603218
605524
608772
632258
632642
634867
639751
640525
647905
647948
704205
803455
]
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 (396404 , 411245 , 421415 , 422444 , 425910 , 429460 , 429909 , 442691 , 447426 , 452901 , 452933 , 459784 , 467383 , 468106 , 468446 , 470539 , 472313 , 474652 , 478533 , 483542 , 484674 , 484705 , 489373 , 492111 , 493121 , 496017 , 496024 , 496270 , 501718 , 504376 , 507696 , 508737 , 509292 , 511492 , 511762 , 512320 , 513070 , 514897 , 515892 , 516684 , 517865 , 525399 , 529794 , 536865 , 542580 , 550604 , 553545 , 576056 , 578463 , 585144 , 591267 , 595568 , 596871 , 599295 , 601917 , 601967 , 603150 , 603218 , 605524 , 608772 , 632258 , 632642 , 634867 , 639751 , 640525 , 647905 , 647948 , 704205 , 803455 );
Copy
6
84.53 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
396404
411245
421415
422444
425910
429460
429909
442691
447426
452901
452933
459784
467383
468106
468446
470539
472313
474652
478533
483542
484674
484705
489373
492111
493121
496017
496024
496270
501718
504376
507696
508737
509292
511492
511762
512320
513070
514897
515892
516684
517865
525399
529794
536865
542580
550604
553545
576056
578463
585144
591267
595568
596871
599295
601917
601967
603150
603218
605524
608772
632258
632642
634867
639751
640525
647905
647948
704205
803455
]
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 (396404 , 411245 , 421415 , 422444 , 425910 , 429460 , 429909 , 442691 , 447426 , 452901 , 452933 , 459784 , 467383 , 468106 , 468446 , 470539 , 472313 , 474652 , 478533 , 483542 , 484674 , 484705 , 489373 , 492111 , 493121 , 496017 , 496024 , 496270 , 501718 , 504376 , 507696 , 508737 , 509292 , 511492 , 511762 , 512320 , 513070 , 514897 , 515892 , 516684 , 517865 , 525399 , 529794 , 536865 , 542580 , 550604 , 553545 , 576056 , 578463 , 585144 , 591267 , 595568 , 596871 , 599295 , 601917 , 601967 , 603150 , 603218 , 605524 , 608772 , 632258 , 632642 , 634867 , 639751 , 640525 , 647905 , 647948 , 704205 , 803455 );
Copy