3
12.83 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
481939
476572
584120
532999
518839
551532
551553
554388
606349
512544
527033
510853
472237
443737
452327
466011
514906
534709
520713
601669
494513
570073
578459
552264
586479
596360
458912
424254
437191
512601
448954
481674
486888
574396
466081
427182
468631
428509
452535
466239
484748
555129
473173
492534
552466
618561
435792
613819
425878
513566
663264
522690
561998
668140
626302
524323
558016
599483
620757
620232
533685
620124
751565
641127
523715
527908
520672
596466
493163
]
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 (481939 , 476572 , 584120 , 532999 , 518839 , 551532 , 551553 , 554388 , 606349 , 512544 , 527033 , 510853 , 472237 , 443737 , 452327 , 466011 , 514906 , 534709 , 520713 , 601669 , 494513 , 570073 , 578459 , 552264 , 586479 , 596360 , 458912 , 424254 , 437191 , 512601 , 448954 , 481674 , 486888 , 574396 , 466081 , 427182 , 468631 , 428509 , 452535 , 466239 , 484748 , 555129 , 473173 , 492534 , 552466 , 618561 , 435792 , 613819 , 425878 , 513566 , 663264 , 522690 , 561998 , 668140 , 626302 , 524323 , 558016 , 599483 , 620757 , 620232 , 533685 , 620124 , 751565 , 641127 , 523715 , 527908 , 520672 , 596466 , 493163 );
Copy
4
2.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
424254
425878
427182
428509
435792
437191
443737
448954
452327
452535
458912
466011
466081
466239
468631
472237
473173
476572
481674
481939
484748
486888
492534
493163
494513
510853
512544
512601
513566
514906
518839
520672
520713
522690
523715
524323
527033
527908
532999
533685
534709
551532
551553
552264
552466
554388
555129
558016
561998
570073
574396
578459
584120
586479
596360
596466
599483
601669
606349
613819
618561
620124
620232
620757
626302
641127
663264
668140
751565
]
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 (424254 , 425878 , 427182 , 428509 , 435792 , 437191 , 443737 , 448954 , 452327 , 452535 , 458912 , 466011 , 466081 , 466239 , 468631 , 472237 , 473173 , 476572 , 481674 , 481939 , 484748 , 486888 , 492534 , 493163 , 494513 , 510853 , 512544 , 512601 , 513566 , 514906 , 518839 , 520672 , 520713 , 522690 , 523715 , 524323 , 527033 , 527908 , 532999 , 533685 , 534709 , 551532 , 551553 , 552264 , 552466 , 554388 , 555129 , 558016 , 561998 , 570073 , 574396 , 578459 , 584120 , 586479 , 596360 , 596466 , 599483 , 601669 , 606349 , 613819 , 618561 , 620124 , 620232 , 620757 , 626302 , 641127 , 663264 , 668140 , 751565 );
Copy
5
92.23 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
424254
425878
427182
428509
435792
437191
443737
448954
452327
452535
458912
466011
466081
466239
468631
472237
473173
476572
481674
481939
484748
486888
492534
493163
494513
510853
512544
512601
513566
514906
518839
520672
520713
522690
523715
524323
527033
527908
532999
533685
534709
551532
551553
552264
552466
554388
555129
558016
561998
570073
574396
578459
584120
586479
596360
596466
599483
601669
606349
613819
618561
620124
620232
620757
626302
641127
663264
668140
751565
]
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 (424254 , 425878 , 427182 , 428509 , 435792 , 437191 , 443737 , 448954 , 452327 , 452535 , 458912 , 466011 , 466081 , 466239 , 468631 , 472237 , 473173 , 476572 , 481674 , 481939 , 484748 , 486888 , 492534 , 493163 , 494513 , 510853 , 512544 , 512601 , 513566 , 514906 , 518839 , 520672 , 520713 , 522690 , 523715 , 524323 , 527033 , 527908 , 532999 , 533685 , 534709 , 551532 , 551553 , 552264 , 552466 , 554388 , 555129 , 558016 , 561998 , 570073 , 574396 , 578459 , 584120 , 586479 , 596360 , 596466 , 599483 , 601669 , 606349 , 613819 , 618561 , 620124 , 620232 , 620757 , 626302 , 641127 , 663264 , 668140 , 751565 );
Copy