4
8.42 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
779936
725562
545686
556341
513649
513646
537728
672136
745335
777197
668417
642735
672184
600557
508764
667743
641663
566687
809167
467024
610962
754977
738528
702864
768798
484040
555029
713323
426006
756045
808683
464157
785939
728540
535829
681339
605737
808652
797659
484751
718718
442505
478904
431321
534130
533832
641705
702460
513639
670190
688333
681098
677815
810465
545387
532737
681686
433977
546858
537946
577519
578482
536293
554409
637460
681584
541769
]
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 (779936 , 725562 , 545686 , 556341 , 513649 , 513646 , 537728 , 672136 , 745335 , 777197 , 668417 , 642735 , 672184 , 600557 , 508764 , 667743 , 641663 , 566687 , 809167 , 467024 , 610962 , 754977 , 738528 , 702864 , 768798 , 484040 , 555029 , 713323 , 426006 , 756045 , 808683 , 464157 , 785939 , 728540 , 535829 , 681339 , 605737 , 808652 , 797659 , 484751 , 718718 , 442505 , 478904 , 431321 , 534130 , 533832 , 641705 , 702460 , 513639 , 670190 , 688333 , 681098 , 677815 , 810465 , 545387 , 532737 , 681686 , 433977 , 546858 , 537946 , 577519 , 578482 , 536293 , 554409 , 637460 , 681584 , 541769 );
Copy
5
2.88 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
426006
431321
433977
442505
464157
467024
478904
484040
484751
508764
513639
513646
513649
532737
533832
534130
535829
536293
537728
537946
541769
545387
545686
546858
554409
555029
556341
566687
577519
578482
600557
605737
610962
637460
641663
641705
642735
667743
668417
670190
672136
672184
677815
681098
681339
681584
681686
688333
702460
702864
713323
718718
725562
728540
738528
745335
754977
756045
768798
777197
779936
785939
797659
808652
808683
809167
810465
]
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 (426006 , 431321 , 433977 , 442505 , 464157 , 467024 , 478904 , 484040 , 484751 , 508764 , 513639 , 513646 , 513649 , 532737 , 533832 , 534130 , 535829 , 536293 , 537728 , 537946 , 541769 , 545387 , 545686 , 546858 , 554409 , 555029 , 556341 , 566687 , 577519 , 578482 , 600557 , 605737 , 610962 , 637460 , 641663 , 641705 , 642735 , 667743 , 668417 , 670190 , 672136 , 672184 , 677815 , 681098 , 681339 , 681584 , 681686 , 688333 , 702460 , 702864 , 713323 , 718718 , 725562 , 728540 , 738528 , 745335 , 754977 , 756045 , 768798 , 777197 , 779936 , 785939 , 797659 , 808652 , 808683 , 809167 , 810465 );
Copy
6
81.19 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
426006
431321
433977
442505
464157
467024
478904
484040
484751
508764
513639
513646
513649
532737
533832
534130
535829
536293
537728
537946
541769
545387
545686
546858
554409
555029
556341
566687
577519
578482
600557
605737
610962
637460
641663
641705
642735
667743
668417
670190
672136
672184
677815
681098
681339
681584
681686
688333
702460
702864
713323
718718
725562
728540
738528
745335
754977
756045
768798
777197
779936
785939
797659
808652
808683
809167
810465
]
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 (426006 , 431321 , 433977 , 442505 , 464157 , 467024 , 478904 , 484040 , 484751 , 508764 , 513639 , 513646 , 513649 , 532737 , 533832 , 534130 , 535829 , 536293 , 537728 , 537946 , 541769 , 545387 , 545686 , 546858 , 554409 , 555029 , 556341 , 566687 , 577519 , 578482 , 600557 , 605737 , 610962 , 637460 , 641663 , 641705 , 642735 , 667743 , 668417 , 670190 , 672136 , 672184 , 677815 , 681098 , 681339 , 681584 , 681686 , 688333 , 702460 , 702864 , 713323 , 718718 , 725562 , 728540 , 738528 , 745335 , 754977 , 756045 , 768798 , 777197 , 779936 , 785939 , 797659 , 808652 , 808683 , 809167 , 810465 );
Copy