3
15.09 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
487082
516636
564859
449384
414445
517952
590664
423123
421108
418901
452587
507797
495256
515733
525248
541410
545909
571822
549660
549528
569398
588644
600777
588340
455430
501433
517553
517559
485522
452594
531282
520843
721557
614487
718750
517080
522597
419590
466782
526884
550633
569829
600878
544183
546715
391521
470952
493914
508269
515603
554529
595256
489729
689379
583482
397400
515579
592320
485083
514129
524535
601273
600843
509432
559925
619423
597474
624428
619475
621272
]
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 (487082 , 516636 , 564859 , 449384 , 414445 , 517952 , 590664 , 423123 , 421108 , 418901 , 452587 , 507797 , 495256 , 515733 , 525248 , 541410 , 545909 , 571822 , 549660 , 549528 , 569398 , 588644 , 600777 , 588340 , 455430 , 501433 , 517553 , 517559 , 485522 , 452594 , 531282 , 520843 , 721557 , 614487 , 718750 , 517080 , 522597 , 419590 , 466782 , 526884 , 550633 , 569829 , 600878 , 544183 , 546715 , 391521 , 470952 , 493914 , 508269 , 515603 , 554529 , 595256 , 489729 , 689379 , 583482 , 397400 , 515579 , 592320 , 485083 , 514129 , 524535 , 601273 , 600843 , 509432 , 559925 , 619423 , 597474 , 624428 , 619475 , 621272 );
Copy
4
3.72 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
414445
418901
419590
421108
423123
449384
452587
452594
455430
466782
470952
485083
485522
487082
489729
493914
495256
501433
507797
508269
509432
514129
515579
515603
515733
516636
517080
517553
517559
517952
520843
522597
524535
525248
526884
531282
541410
544183
545909
546715
549528
549660
550633
554529
559925
564859
569398
569829
571822
583482
588340
588644
590664
592320
595256
597474
600777
600843
600878
601273
614487
619423
619475
621272
624428
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 , 414445 , 418901 , 419590 , 421108 , 423123 , 449384 , 452587 , 452594 , 455430 , 466782 , 470952 , 485083 , 485522 , 487082 , 489729 , 493914 , 495256 , 501433 , 507797 , 508269 , 509432 , 514129 , 515579 , 515603 , 515733 , 516636 , 517080 , 517553 , 517559 , 517952 , 520843 , 522597 , 524535 , 525248 , 526884 , 531282 , 541410 , 544183 , 545909 , 546715 , 549528 , 549660 , 550633 , 554529 , 559925 , 564859 , 569398 , 569829 , 571822 , 583482 , 588340 , 588644 , 590664 , 592320 , 595256 , 597474 , 600777 , 600843 , 600878 , 601273 , 614487 , 619423 , 619475 , 621272 , 624428 , 689379 , 718750 , 721557 );
Copy
5
132.62 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
414445
418901
419590
421108
423123
449384
452587
452594
455430
466782
470952
485083
485522
487082
489729
493914
495256
501433
507797
508269
509432
514129
515579
515603
515733
516636
517080
517553
517559
517952
520843
522597
524535
525248
526884
531282
541410
544183
545909
546715
549528
549660
550633
554529
559925
564859
569398
569829
571822
583482
588340
588644
590664
592320
595256
597474
600777
600843
600878
601273
614487
619423
619475
621272
624428
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 , 414445 , 418901 , 419590 , 421108 , 423123 , 449384 , 452587 , 452594 , 455430 , 466782 , 470952 , 485083 , 485522 , 487082 , 489729 , 493914 , 495256 , 501433 , 507797 , 508269 , 509432 , 514129 , 515579 , 515603 , 515733 , 516636 , 517080 , 517553 , 517559 , 517952 , 520843 , 522597 , 524535 , 525248 , 526884 , 531282 , 541410 , 544183 , 545909 , 546715 , 549528 , 549660 , 550633 , 554529 , 559925 , 564859 , 569398 , 569829 , 571822 , 583482 , 588340 , 588644 , 590664 , 592320 , 595256 , 597474 , 600777 , 600843 , 600878 , 601273 , 614487 , 619423 , 619475 , 621272 , 624428 , 689379 , 718750 , 721557 );
Copy