3
13.27 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
524628
530024
508518
531123
541853
545611
553272
650380
674995
675006
677296
677777
678522
695181
707391
650316
666880
666894
646255
651601
675000
545437
545469
630533
635243
639732
639739
630869
637003
588265
621612
628371
630537
634780
638967
632701
633449
449123
406381
445641
430404
495218
516684
489328
476106
531105
532755
530637
541643
646448
675012
674994
666850
675008
545355
628333
633435
609922
630280
466404
483550
532666
530369
614029
632563
598105
599988
617420
427174
665328
]
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 (524628 , 530024 , 508518 , 531123 , 541853 , 545611 , 553272 , 650380 , 674995 , 675006 , 677296 , 677777 , 678522 , 695181 , 707391 , 650316 , 666880 , 666894 , 646255 , 651601 , 675000 , 545437 , 545469 , 630533 , 635243 , 639732 , 639739 , 630869 , 637003 , 588265 , 621612 , 628371 , 630537 , 634780 , 638967 , 632701 , 633449 , 449123 , 406381 , 445641 , 430404 , 495218 , 516684 , 489328 , 476106 , 531105 , 532755 , 530637 , 541643 , 646448 , 675012 , 674994 , 666850 , 675008 , 545355 , 628333 , 633435 , 609922 , 630280 , 466404 , 483550 , 532666 , 530369 , 614029 , 632563 , 598105 , 599988 , 617420 , 427174 , 665328 );
Copy
4
2.27 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
406381
427174
430404
445641
449123
466404
476106
483550
489328
495218
508518
516684
524628
530024
530369
530637
531105
531123
532666
532755
541643
541853
545355
545437
545469
545611
553272
588265
598105
599988
609922
614029
617420
621612
628333
628371
630280
630533
630537
630869
632563
632701
633435
633449
634780
635243
637003
638967
639732
639739
646255
646448
650316
650380
651601
665328
666850
666880
666894
674994
674995
675000
675006
675008
675012
677296
677777
678522
695181
707391
]
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 (406381 , 427174 , 430404 , 445641 , 449123 , 466404 , 476106 , 483550 , 489328 , 495218 , 508518 , 516684 , 524628 , 530024 , 530369 , 530637 , 531105 , 531123 , 532666 , 532755 , 541643 , 541853 , 545355 , 545437 , 545469 , 545611 , 553272 , 588265 , 598105 , 599988 , 609922 , 614029 , 617420 , 621612 , 628333 , 628371 , 630280 , 630533 , 630537 , 630869 , 632563 , 632701 , 633435 , 633449 , 634780 , 635243 , 637003 , 638967 , 639732 , 639739 , 646255 , 646448 , 650316 , 650380 , 651601 , 665328 , 666850 , 666880 , 666894 , 674994 , 674995 , 675000 , 675006 , 675008 , 675012 , 677296 , 677777 , 678522 , 695181 , 707391 );
Copy
5
75.30 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
406381
427174
430404
445641
449123
466404
476106
483550
489328
495218
508518
516684
524628
530024
530369
530637
531105
531123
532666
532755
541643
541853
545355
545437
545469
545611
553272
588265
598105
599988
609922
614029
617420
621612
628333
628371
630280
630533
630537
630869
632563
632701
633435
633449
634780
635243
637003
638967
639732
639739
646255
646448
650316
650380
651601
665328
666850
666880
666894
674994
674995
675000
675006
675008
675012
677296
677777
678522
695181
707391
]
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 (406381 , 427174 , 430404 , 445641 , 449123 , 466404 , 476106 , 483550 , 489328 , 495218 , 508518 , 516684 , 524628 , 530024 , 530369 , 530637 , 531105 , 531123 , 532666 , 532755 , 541643 , 541853 , 545355 , 545437 , 545469 , 545611 , 553272 , 588265 , 598105 , 599988 , 609922 , 614029 , 617420 , 621612 , 628333 , 628371 , 630280 , 630533 , 630537 , 630869 , 632563 , 632701 , 633435 , 633449 , 634780 , 635243 , 637003 , 638967 , 639732 , 639739 , 646255 , 646448 , 650316 , 650380 , 651601 , 665328 , 666850 , 666880 , 666894 , 674994 , 674995 , 675000 , 675006 , 675008 , 675012 , 677296 , 677777 , 678522 , 695181 , 707391 );
Copy