3
12.16 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
546712
590664
423123
421108
418901
452587
507797
495256
515733
525248
541410
545909
571822
549660
549528
569398
588644
600777
588340
455430
501433
517553
517559
485522
520843
721557
614487
718750
517080
522597
485075
419590
466782
526884
550633
569829
600878
544183
546715
391521
470952
472821
425006
493914
508269
515603
595256
489729
689379
583482
397400
515579
485083
514129
524535
601273
600843
509432
621112
559925
619423
511366
514294
688007
597474
589544
624428
619475
621272
418686
]
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 (546712 , 590664 , 423123 , 421108 , 418901 , 452587 , 507797 , 495256 , 515733 , 525248 , 541410 , 545909 , 571822 , 549660 , 549528 , 569398 , 588644 , 600777 , 588340 , 455430 , 501433 , 517553 , 517559 , 485522 , 520843 , 721557 , 614487 , 718750 , 517080 , 522597 , 485075 , 419590 , 466782 , 526884 , 550633 , 569829 , 600878 , 544183 , 546715 , 391521 , 470952 , 472821 , 425006 , 493914 , 508269 , 515603 , 595256 , 489729 , 689379 , 583482 , 397400 , 515579 , 485083 , 514129 , 524535 , 601273 , 600843 , 509432 , 621112 , 559925 , 619423 , 511366 , 514294 , 688007 , 597474 , 589544 , 624428 , 619475 , 621272 , 418686 );
Copy
4
3.20 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
391521
397400
418686
418901
419590
421108
423123
425006
452587
455430
466782
470952
472821
485075
485083
485522
489729
493914
495256
501433
507797
508269
509432
511366
514129
514294
515579
515603
515733
517080
517553
517559
520843
522597
524535
525248
526884
541410
544183
545909
546712
546715
549528
549660
550633
559925
569398
569829
571822
583482
588340
588644
589544
590664
595256
597474
600777
600843
600878
601273
614487
619423
619475
621112
621272
624428
688007
689379
718750
721557
]
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 (391521 , 397400 , 418686 , 418901 , 419590 , 421108 , 423123 , 425006 , 452587 , 455430 , 466782 , 470952 , 472821 , 485075 , 485083 , 485522 , 489729 , 493914 , 495256 , 501433 , 507797 , 508269 , 509432 , 511366 , 514129 , 514294 , 515579 , 515603 , 515733 , 517080 , 517553 , 517559 , 520843 , 522597 , 524535 , 525248 , 526884 , 541410 , 544183 , 545909 , 546712 , 546715 , 549528 , 549660 , 550633 , 559925 , 569398 , 569829 , 571822 , 583482 , 588340 , 588644 , 589544 , 590664 , 595256 , 597474 , 600777 , 600843 , 600878 , 601273 , 614487 , 619423 , 619475 , 621112 , 621272 , 624428 , 688007 , 689379 , 718750 , 721557 );
Copy
5
103.86 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
391521
397400
418686
418901
419590
421108
423123
425006
452587
455430
466782
470952
472821
485075
485083
485522
489729
493914
495256
501433
507797
508269
509432
511366
514129
514294
515579
515603
515733
517080
517553
517559
520843
522597
524535
525248
526884
541410
544183
545909
546712
546715
549528
549660
550633
559925
569398
569829
571822
583482
588340
588644
589544
590664
595256
597474
600777
600843
600878
601273
614487
619423
619475
621112
621272
624428
688007
689379
718750
721557
]
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 (391521 , 397400 , 418686 , 418901 , 419590 , 421108 , 423123 , 425006 , 452587 , 455430 , 466782 , 470952 , 472821 , 485075 , 485083 , 485522 , 489729 , 493914 , 495256 , 501433 , 507797 , 508269 , 509432 , 511366 , 514129 , 514294 , 515579 , 515603 , 515733 , 517080 , 517553 , 517559 , 520843 , 522597 , 524535 , 525248 , 526884 , 541410 , 544183 , 545909 , 546712 , 546715 , 549528 , 549660 , 550633 , 559925 , 569398 , 569829 , 571822 , 583482 , 588340 , 588644 , 589544 , 590664 , 595256 , 597474 , 600777 , 600843 , 600878 , 601273 , 614487 , 619423 , 619475 , 621112 , 621272 , 624428 , 688007 , 689379 , 718750 , 721557 );
Copy