3
18.07 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
818494
823842
694062
731065
770480
721572
785501
530290
552546
613382
684364
794139
726063
667976
674491
742451
823483
779950
794131
501876
422910
537832
501526
531325
645908
722224
613470
625568
639127
485406
485907
145424
527002
535534
654347
654450
658894
596463
479605
501512
422982
422909
446183
455374
505656
502590
572738
598466
467130
420209
422525
585141
503000
564096
552635
560766
626032
766849
615734
477965
555538
556602
452436
507673
439572
511822
490870
487031
581736
422989
626855
529266
]
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 (818494 , 823842 , 694062 , 731065 , 770480 , 721572 , 785501 , 530290 , 552546 , 613382 , 684364 , 794139 , 726063 , 667976 , 674491 , 742451 , 823483 , 779950 , 794131 , 501876 , 422910 , 537832 , 501526 , 531325 , 645908 , 722224 , 613470 , 625568 , 639127 , 485406 , 485907 , 145424 , 527002 , 535534 , 654347 , 654450 , 658894 , 596463 , 479605 , 501512 , 422982 , 422909 , 446183 , 455374 , 505656 , 502590 , 572738 , 598466 , 467130 , 420209 , 422525 , 585141 , 503000 , 564096 , 552635 , 560766 , 626032 , 766849 , 615734 , 477965 , 555538 , 556602 , 452436 , 507673 , 439572 , 511822 , 490870 , 487031 , 581736 , 422989 , 626855 , 529266 );
Copy
4
2.64 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
145424
420209
422525
422909
422910
422982
422989
439572
446183
452436
455374
467130
477965
479605
485406
485907
487031
490870
501512
501526
501876
502590
503000
505656
507673
511822
527002
529266
530290
531325
535534
537832
552546
552635
555538
556602
560766
564096
572738
581736
585141
596463
598466
613382
613470
615734
625568
626032
626855
639127
645908
654347
654450
658894
667976
674491
684364
694062
721572
722224
726063
731065
742451
766849
770480
779950
785501
794131
794139
818494
823483
823842
]
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 (145424 , 420209 , 422525 , 422909 , 422910 , 422982 , 422989 , 439572 , 446183 , 452436 , 455374 , 467130 , 477965 , 479605 , 485406 , 485907 , 487031 , 490870 , 501512 , 501526 , 501876 , 502590 , 503000 , 505656 , 507673 , 511822 , 527002 , 529266 , 530290 , 531325 , 535534 , 537832 , 552546 , 552635 , 555538 , 556602 , 560766 , 564096 , 572738 , 581736 , 585141 , 596463 , 598466 , 613382 , 613470 , 615734 , 625568 , 626032 , 626855 , 639127 , 645908 , 654347 , 654450 , 658894 , 667976 , 674491 , 684364 , 694062 , 721572 , 722224 , 726063 , 731065 , 742451 , 766849 , 770480 , 779950 , 785501 , 794131 , 794139 , 818494 , 823483 , 823842 );
Copy
5
90.58 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
145424
420209
422525
422909
422910
422982
422989
439572
446183
452436
455374
467130
477965
479605
485406
485907
487031
490870
501512
501526
501876
502590
503000
505656
507673
511822
527002
529266
530290
531325
535534
537832
552546
552635
555538
556602
560766
564096
572738
581736
585141
596463
598466
613382
613470
615734
625568
626032
626855
639127
645908
654347
654450
658894
667976
674491
684364
694062
721572
722224
726063
731065
742451
766849
770480
779950
785501
794131
794139
818494
823483
823842
]
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 (145424 , 420209 , 422525 , 422909 , 422910 , 422982 , 422989 , 439572 , 446183 , 452436 , 455374 , 467130 , 477965 , 479605 , 485406 , 485907 , 487031 , 490870 , 501512 , 501526 , 501876 , 502590 , 503000 , 505656 , 507673 , 511822 , 527002 , 529266 , 530290 , 531325 , 535534 , 537832 , 552546 , 552635 , 555538 , 556602 , 560766 , 564096 , 572738 , 581736 , 585141 , 596463 , 598466 , 613382 , 613470 , 615734 , 625568 , 626032 , 626855 , 639127 , 645908 , 654347 , 654450 , 658894 , 667976 , 674491 , 684364 , 694062 , 721572 , 722224 , 726063 , 731065 , 742451 , 766849 , 770480 , 779950 , 785501 , 794131 , 794139 , 818494 , 823483 , 823842 );
Copy