3
12.32 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
789812
699089
818641
429078
808817
666421
694346
805691
585306
797292
391596
575553
582619
692450
558247
788944
720467
595362
760381
586245
563204
646796
550351
772064
627870
462329
411694
413086
450700
520651
232940
393286
474162
582417
391941
466164
484655
484762
619644
782253
453186
479027
510750
484609
484392
423940
470936
443767
474650
479049
462702
484459
484660
484669
485916
454277
466014
484381
484708
484713
460739
518842
484402
485735
466069
484656
382549
484620
476251
460736
570168
546114
]
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 (789812 , 699089 , 818641 , 429078 , 808817 , 666421 , 694346 , 805691 , 585306 , 797292 , 391596 , 575553 , 582619 , 692450 , 558247 , 788944 , 720467 , 595362 , 760381 , 586245 , 563204 , 646796 , 550351 , 772064 , 627870 , 462329 , 411694 , 413086 , 450700 , 520651 , 232940 , 393286 , 474162 , 582417 , 391941 , 466164 , 484655 , 484762 , 619644 , 782253 , 453186 , 479027 , 510750 , 484609 , 484392 , 423940 , 470936 , 443767 , 474650 , 479049 , 462702 , 484459 , 484660 , 484669 , 485916 , 454277 , 466014 , 484381 , 484708 , 484713 , 460739 , 518842 , 484402 , 485735 , 466069 , 484656 , 382549 , 484620 , 476251 , 460736 , 570168 , 546114 );
Copy
4
3.21 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
232940
382549
391596
391941
393286
411694
413086
423940
429078
443767
450700
453186
454277
460736
460739
462329
462702
466014
466069
466164
470936
474162
474650
476251
479027
479049
484381
484392
484402
484459
484609
484620
484655
484656
484660
484669
484708
484713
484762
485735
485916
510750
518842
520651
546114
550351
558247
563204
570168
575553
582417
582619
585306
586245
595362
619644
627870
646796
666421
692450
694346
699089
720467
760381
772064
782253
788944
789812
797292
805691
808817
818641
]
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 (232940 , 382549 , 391596 , 391941 , 393286 , 411694 , 413086 , 423940 , 429078 , 443767 , 450700 , 453186 , 454277 , 460736 , 460739 , 462329 , 462702 , 466014 , 466069 , 466164 , 470936 , 474162 , 474650 , 476251 , 479027 , 479049 , 484381 , 484392 , 484402 , 484459 , 484609 , 484620 , 484655 , 484656 , 484660 , 484669 , 484708 , 484713 , 484762 , 485735 , 485916 , 510750 , 518842 , 520651 , 546114 , 550351 , 558247 , 563204 , 570168 , 575553 , 582417 , 582619 , 585306 , 586245 , 595362 , 619644 , 627870 , 646796 , 666421 , 692450 , 694346 , 699089 , 720467 , 760381 , 772064 , 782253 , 788944 , 789812 , 797292 , 805691 , 808817 , 818641 );
Copy
5
87.70 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
232940
382549
391596
391941
393286
411694
413086
423940
429078
443767
450700
453186
454277
460736
460739
462329
462702
466014
466069
466164
470936
474162
474650
476251
479027
479049
484381
484392
484402
484459
484609
484620
484655
484656
484660
484669
484708
484713
484762
485735
485916
510750
518842
520651
546114
550351
558247
563204
570168
575553
582417
582619
585306
586245
595362
619644
627870
646796
666421
692450
694346
699089
720467
760381
772064
782253
788944
789812
797292
805691
808817
818641
]
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 (232940 , 382549 , 391596 , 391941 , 393286 , 411694 , 413086 , 423940 , 429078 , 443767 , 450700 , 453186 , 454277 , 460736 , 460739 , 462329 , 462702 , 466014 , 466069 , 466164 , 470936 , 474162 , 474650 , 476251 , 479027 , 479049 , 484381 , 484392 , 484402 , 484459 , 484609 , 484620 , 484655 , 484656 , 484660 , 484669 , 484708 , 484713 , 484762 , 485735 , 485916 , 510750 , 518842 , 520651 , 546114 , 550351 , 558247 , 563204 , 570168 , 575553 , 582417 , 582619 , 585306 , 586245 , 595362 , 619644 , 627870 , 646796 , 666421 , 692450 , 694346 , 699089 , 720467 , 760381 , 772064 , 782253 , 788944 , 789812 , 797292 , 805691 , 808817 , 818641 );
Copy