3
12.55 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
439699
421878
455337
526520
489379
502814
500797
523840
526524
524783
510295
401621
474784
469030
537123
428202
420767
526515
421879
426994
422208
513728
550644
440645
516741
603743
529170
443946
440548
439569
460679
463703
394258
439727
480833
521473
461018
518959
519023
565626
563218
474783
472656
458011
527201
473492
492138
551923
563141
587915
424274
521129
525233
520878
528347
537122
565982
557551
443727
428137
439660
439763
528084
464890
474777
479059
439770
526523
523833
421155
523256
563456
525154
591198
524780
599368
]
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 (439699 , 421878 , 455337 , 526520 , 489379 , 502814 , 500797 , 523840 , 526524 , 524783 , 510295 , 401621 , 474784 , 469030 , 537123 , 428202 , 420767 , 526515 , 421879 , 426994 , 422208 , 513728 , 550644 , 440645 , 516741 , 603743 , 529170 , 443946 , 440548 , 439569 , 460679 , 463703 , 394258 , 439727 , 480833 , 521473 , 461018 , 518959 , 519023 , 565626 , 563218 , 474783 , 472656 , 458011 , 527201 , 473492 , 492138 , 551923 , 563141 , 587915 , 424274 , 521129 , 525233 , 520878 , 528347 , 537122 , 565982 , 557551 , 443727 , 428137 , 439660 , 439763 , 528084 , 464890 , 474777 , 479059 , 439770 , 526523 , 523833 , 421155 , 523256 , 563456 , 525154 , 591198 , 524780 , 599368 );
Copy
4
2.17 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
394258
401621
420767
421155
421878
421879
422208
424274
426994
428137
428202
439569
439660
439699
439727
439763
439770
440548
440645
443727
443946
455337
458011
460679
461018
463703
464890
469030
472656
473492
474777
474783
474784
479059
480833
489379
492138
500797
502814
513728
516741
518959
519023
520878
521129
521473
523256
523833
523840
524780
524783
525154
525233
526515
526520
526523
526524
528084
528347
529170
537122
537123
550644
551923
557551
563141
563218
563456
565626
565982
587915
591198
599368
603743
]
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 (394258 , 401621 , 420767 , 421155 , 421878 , 421879 , 422208 , 424274 , 426994 , 428137 , 428202 , 439569 , 439660 , 439699 , 439727 , 439763 , 439770 , 440548 , 440645 , 443727 , 443946 , 455337 , 458011 , 460679 , 461018 , 463703 , 464890 , 469030 , 472656 , 473492 , 474777 , 474783 , 474784 , 479059 , 480833 , 489379 , 492138 , 500797 , 502814 , 513728 , 516741 , 518959 , 519023 , 520878 , 521129 , 521473 , 523256 , 523833 , 523840 , 524780 , 524783 , 525154 , 525233 , 526515 , 526520 , 526523 , 526524 , 528084 , 528347 , 529170 , 537122 , 537123 , 550644 , 551923 , 557551 , 563141 , 563218 , 563456 , 565626 , 565982 , 587915 , 591198 , 599368 , 603743 );
Copy
5
75.37 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
394258
401621
420767
421155
421878
421879
422208
424274
426994
428137
428202
439569
439660
439699
439727
439763
439770
440548
440645
443727
443946
455337
458011
460679
461018
463703
464890
469030
472656
473492
474777
474783
474784
479059
480833
489379
492138
500797
502814
513728
516741
518959
519023
520878
521129
521473
523256
523833
523840
524780
524783
525154
525233
526515
526520
526523
526524
528084
528347
529170
537122
537123
550644
551923
557551
563141
563218
563456
565626
565982
587915
591198
599368
603743
]
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 (394258 , 401621 , 420767 , 421155 , 421878 , 421879 , 422208 , 424274 , 426994 , 428137 , 428202 , 439569 , 439660 , 439699 , 439727 , 439763 , 439770 , 440548 , 440645 , 443727 , 443946 , 455337 , 458011 , 460679 , 461018 , 463703 , 464890 , 469030 , 472656 , 473492 , 474777 , 474783 , 474784 , 479059 , 480833 , 489379 , 492138 , 500797 , 502814 , 513728 , 516741 , 518959 , 519023 , 520878 , 521129 , 521473 , 523256 , 523833 , 523840 , 524780 , 524783 , 525154 , 525233 , 526515 , 526520 , 526523 , 526524 , 528084 , 528347 , 529170 , 537122 , 537123 , 550644 , 551923 , 557551 , 563141 , 563218 , 563456 , 565626 , 565982 , 587915 , 591198 , 599368 , 603743 );
Copy