3
12.14 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
639841
812110
697331
596878
812185
452702
530398
629027
639871
477747
541750
685187
595133
596770
629974
386557
572564
717497
593736
642313
797346
746797
722066
386296
531373
678895
596838
631767
772637
760093
773244
758269
777792
472944
555146
665063
708029
604691
791059
660070
596972
628586
778445
752482
480891
530160
592173
639861
750814
736692
473206
577398
530178
541084
708517
623810
598133
633216
633408
553786
706935
358507
572653
665675
440347
471166
440760
437285
595755
]
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 (639841 , 812110 , 697331 , 596878 , 812185 , 452702 , 530398 , 629027 , 639871 , 477747 , 541750 , 685187 , 595133 , 596770 , 629974 , 386557 , 572564 , 717497 , 593736 , 642313 , 797346 , 746797 , 722066 , 386296 , 531373 , 678895 , 596838 , 631767 , 772637 , 760093 , 773244 , 758269 , 777792 , 472944 , 555146 , 665063 , 708029 , 604691 , 791059 , 660070 , 596972 , 628586 , 778445 , 752482 , 480891 , 530160 , 592173 , 639861 , 750814 , 736692 , 473206 , 577398 , 530178 , 541084 , 708517 , 623810 , 598133 , 633216 , 633408 , 553786 , 706935 , 358507 , 572653 , 665675 , 440347 , 471166 , 440760 , 437285 , 595755 );
Copy
4
2.92 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
358507
386296
386557
437285
440347
440760
452702
471166
472944
473206
477747
480891
530160
530178
530398
531373
541084
541750
553786
555146
572564
572653
577398
592173
593736
595133
595755
596770
596838
596878
596972
598133
604691
623810
628586
629027
629974
631767
633216
633408
639841
639861
639871
642313
660070
665063
665675
678895
685187
697331
706935
708029
708517
717497
722066
736692
746797
750814
752482
758269
760093
772637
773244
777792
778445
791059
797346
812110
812185
]
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 (358507 , 386296 , 386557 , 437285 , 440347 , 440760 , 452702 , 471166 , 472944 , 473206 , 477747 , 480891 , 530160 , 530178 , 530398 , 531373 , 541084 , 541750 , 553786 , 555146 , 572564 , 572653 , 577398 , 592173 , 593736 , 595133 , 595755 , 596770 , 596838 , 596878 , 596972 , 598133 , 604691 , 623810 , 628586 , 629027 , 629974 , 631767 , 633216 , 633408 , 639841 , 639861 , 639871 , 642313 , 660070 , 665063 , 665675 , 678895 , 685187 , 697331 , 706935 , 708029 , 708517 , 717497 , 722066 , 736692 , 746797 , 750814 , 752482 , 758269 , 760093 , 772637 , 773244 , 777792 , 778445 , 791059 , 797346 , 812110 , 812185 );
Copy
5
86.25 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
358507
386296
386557
437285
440347
440760
452702
471166
472944
473206
477747
480891
530160
530178
530398
531373
541084
541750
553786
555146
572564
572653
577398
592173
593736
595133
595755
596770
596838
596878
596972
598133
604691
623810
628586
629027
629974
631767
633216
633408
639841
639861
639871
642313
660070
665063
665675
678895
685187
697331
706935
708029
708517
717497
722066
736692
746797
750814
752482
758269
760093
772637
773244
777792
778445
791059
797346
812110
812185
]
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 (358507 , 386296 , 386557 , 437285 , 440347 , 440760 , 452702 , 471166 , 472944 , 473206 , 477747 , 480891 , 530160 , 530178 , 530398 , 531373 , 541084 , 541750 , 553786 , 555146 , 572564 , 572653 , 577398 , 592173 , 593736 , 595133 , 595755 , 596770 , 596838 , 596878 , 596972 , 598133 , 604691 , 623810 , 628586 , 629027 , 629974 , 631767 , 633216 , 633408 , 639841 , 639861 , 639871 , 642313 , 660070 , 665063 , 665675 , 678895 , 685187 , 697331 , 706935 , 708029 , 708517 , 717497 , 722066 , 736692 , 746797 , 750814 , 752482 , 758269 , 760093 , 772637 , 773244 , 777792 , 778445 , 791059 , 797346 , 812110 , 812185 );
Copy