3
7.18 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
527339
814010
654583
654575
658407
549022
548591
541718
654405
654826
813902
522366
653228
654411
548645
565818
814237
549050
554320
658616
658728
652955
654413
658555
658681
519277
654460
654610
814148
542029
675767
654824
586473
513682
519644
493876
541948
575517
581407
548723
513645
541916
548614
654791
654415
612409
519812
530697
494347
519687
522188
580670
580691
549872
522348
519487
527200
548550
564541
580727
549036
675034
575915
527387
519679
537888
]
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 (527339 , 814010 , 654583 , 654575 , 658407 , 549022 , 548591 , 541718 , 654405 , 654826 , 813902 , 522366 , 653228 , 654411 , 548645 , 565818 , 814237 , 549050 , 554320 , 658616 , 658728 , 652955 , 654413 , 658555 , 658681 , 519277 , 654460 , 654610 , 814148 , 542029 , 675767 , 654824 , 586473 , 513682 , 519644 , 493876 , 541948 , 575517 , 581407 , 548723 , 513645 , 541916 , 548614 , 654791 , 654415 , 612409 , 519812 , 530697 , 494347 , 519687 , 522188 , 580670 , 580691 , 549872 , 522348 , 519487 , 527200 , 548550 , 564541 , 580727 , 549036 , 675034 , 575915 , 527387 , 519679 , 537888 );
Copy
4
2.13 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
493876
494347
513645
513682
519277
519487
519644
519679
519687
519812
522188
522348
522366
527200
527339
527387
530697
537888
541718
541916
541948
542029
548550
548591
548614
548645
548723
549022
549036
549050
549872
554320
564541
565818
575517
575915
580670
580691
580727
581407
586473
612409
652955
653228
654405
654411
654413
654415
654460
654575
654583
654610
654791
654824
654826
658407
658555
658616
658681
658728
675034
675767
813902
814010
814148
814237
]
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 (493876 , 494347 , 513645 , 513682 , 519277 , 519487 , 519644 , 519679 , 519687 , 519812 , 522188 , 522348 , 522366 , 527200 , 527339 , 527387 , 530697 , 537888 , 541718 , 541916 , 541948 , 542029 , 548550 , 548591 , 548614 , 548645 , 548723 , 549022 , 549036 , 549050 , 549872 , 554320 , 564541 , 565818 , 575517 , 575915 , 580670 , 580691 , 580727 , 581407 , 586473 , 612409 , 652955 , 653228 , 654405 , 654411 , 654413 , 654415 , 654460 , 654575 , 654583 , 654610 , 654791 , 654824 , 654826 , 658407 , 658555 , 658616 , 658681 , 658728 , 675034 , 675767 , 813902 , 814010 , 814148 , 814237 );
Copy
5
74.68 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
493876
494347
513645
513682
519277
519487
519644
519679
519687
519812
522188
522348
522366
527200
527339
527387
530697
537888
541718
541916
541948
542029
548550
548591
548614
548645
548723
549022
549036
549050
549872
554320
564541
565818
575517
575915
580670
580691
580727
581407
586473
612409
652955
653228
654405
654411
654413
654415
654460
654575
654583
654610
654791
654824
654826
658407
658555
658616
658681
658728
675034
675767
813902
814010
814148
814237
]
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 (493876 , 494347 , 513645 , 513682 , 519277 , 519487 , 519644 , 519679 , 519687 , 519812 , 522188 , 522348 , 522366 , 527200 , 527339 , 527387 , 530697 , 537888 , 541718 , 541916 , 541948 , 542029 , 548550 , 548591 , 548614 , 548645 , 548723 , 549022 , 549036 , 549050 , 549872 , 554320 , 564541 , 565818 , 575517 , 575915 , 580670 , 580691 , 580727 , 581407 , 586473 , 612409 , 652955 , 653228 , 654405 , 654411 , 654413 , 654415 , 654460 , 654575 , 654583 , 654610 , 654791 , 654824 , 654826 , 658407 , 658555 , 658616 , 658681 , 658728 , 675034 , 675767 , 813902 , 814010 , 814148 , 814237 );
Copy