3
11.51 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
575113
596234
805274
710390
451030
520711
478828
784092
801917
592613
480243
589607
422196
493471
456787
693781
725451
734484
494223
600863
623376
724637
598601
704525
422181
475780
512734
558814
784804
524926
800422
527931
785437
514459
476767
586528
792558
421880
592810
703833
496903
541316
460744
508425
435917
593162
450829
578657
595054
486954
472559
507512
523816
516846
532995
537114
486870
608364
598652
504908
579754
550194
422154
439772
509983
531155
626136
617153
565541
642407
603376
593596
504693
]
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 (575113 , 596234 , 805274 , 710390 , 451030 , 520711 , 478828 , 784092 , 801917 , 592613 , 480243 , 589607 , 422196 , 493471 , 456787 , 693781 , 725451 , 734484 , 494223 , 600863 , 623376 , 724637 , 598601 , 704525 , 422181 , 475780 , 512734 , 558814 , 784804 , 524926 , 800422 , 527931 , 785437 , 514459 , 476767 , 586528 , 792558 , 421880 , 592810 , 703833 , 496903 , 541316 , 460744 , 508425 , 435917 , 593162 , 450829 , 578657 , 595054 , 486954 , 472559 , 507512 , 523816 , 516846 , 532995 , 537114 , 486870 , 608364 , 598652 , 504908 , 579754 , 550194 , 422154 , 439772 , 509983 , 531155 , 626136 , 617153 , 565541 , 642407 , 603376 , 593596 , 504693 );
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
421880
422154
422181
422196
435917
439772
450829
451030
456787
460744
472559
475780
476767
478828
480243
486870
486954
493471
494223
496903
504693
504908
507512
508425
509983
512734
514459
516846
520711
523816
524926
527931
531155
532995
537114
541316
550194
558814
565541
575113
578657
579754
586528
589607
592613
592810
593162
593596
595054
596234
598601
598652
600863
603376
608364
617153
623376
626136
642407
693781
703833
704525
710390
724637
725451
734484
784092
784804
785437
792558
800422
801917
805274
]
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 (421880 , 422154 , 422181 , 422196 , 435917 , 439772 , 450829 , 451030 , 456787 , 460744 , 472559 , 475780 , 476767 , 478828 , 480243 , 486870 , 486954 , 493471 , 494223 , 496903 , 504693 , 504908 , 507512 , 508425 , 509983 , 512734 , 514459 , 516846 , 520711 , 523816 , 524926 , 527931 , 531155 , 532995 , 537114 , 541316 , 550194 , 558814 , 565541 , 575113 , 578657 , 579754 , 586528 , 589607 , 592613 , 592810 , 593162 , 593596 , 595054 , 596234 , 598601 , 598652 , 600863 , 603376 , 608364 , 617153 , 623376 , 626136 , 642407 , 693781 , 703833 , 704525 , 710390 , 724637 , 725451 , 734484 , 784092 , 784804 , 785437 , 792558 , 800422 , 801917 , 805274 );
Copy
5
124.40 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
421880
422154
422181
422196
435917
439772
450829
451030
456787
460744
472559
475780
476767
478828
480243
486870
486954
493471
494223
496903
504693
504908
507512
508425
509983
512734
514459
516846
520711
523816
524926
527931
531155
532995
537114
541316
550194
558814
565541
575113
578657
579754
586528
589607
592613
592810
593162
593596
595054
596234
598601
598652
600863
603376
608364
617153
623376
626136
642407
693781
703833
704525
710390
724637
725451
734484
784092
784804
785437
792558
800422
801917
805274
]
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 (421880 , 422154 , 422181 , 422196 , 435917 , 439772 , 450829 , 451030 , 456787 , 460744 , 472559 , 475780 , 476767 , 478828 , 480243 , 486870 , 486954 , 493471 , 494223 , 496903 , 504693 , 504908 , 507512 , 508425 , 509983 , 512734 , 514459 , 516846 , 520711 , 523816 , 524926 , 527931 , 531155 , 532995 , 537114 , 541316 , 550194 , 558814 , 565541 , 575113 , 578657 , 579754 , 586528 , 589607 , 592613 , 592810 , 593162 , 593596 , 595054 , 596234 , 598601 , 598652 , 600863 , 603376 , 608364 , 617153 , 623376 , 626136 , 642407 , 693781 , 703833 , 704525 , 710390 , 724637 , 725451 , 734484 , 784092 , 784804 , 785437 , 792558 , 800422 , 801917 , 805274 );
Copy