4
12.46 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
473724
449297
449310
461658
597519
631625
585554
760602
785348
750514
752849
749430
753193
617793
638878
707463
783215
459996
525435
445721
451157
450074
583347
596402
804622
757234
783211
784126
728924
445752
477848
446049
448470
474805
547593
565808
558573
706029
596778
604785
602293
641552
811571
778811
809217
733415
435880
435798
462843
461022
498266
490675
446656
514568
583739
584812
681220
594245
601679
807589
452548
504553
505591
460431
603184
756768
518634
503712
556496
579344
609057
486866
569450
519679
511370
]
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 (473724 , 449297 , 449310 , 461658 , 597519 , 631625 , 585554 , 760602 , 785348 , 750514 , 752849 , 749430 , 753193 , 617793 , 638878 , 707463 , 783215 , 459996 , 525435 , 445721 , 451157 , 450074 , 583347 , 596402 , 804622 , 757234 , 783211 , 784126 , 728924 , 445752 , 477848 , 446049 , 448470 , 474805 , 547593 , 565808 , 558573 , 706029 , 596778 , 604785 , 602293 , 641552 , 811571 , 778811 , 809217 , 733415 , 435880 , 435798 , 462843 , 461022 , 498266 , 490675 , 446656 , 514568 , 583739 , 584812 , 681220 , 594245 , 601679 , 807589 , 452548 , 504553 , 505591 , 460431 , 603184 , 756768 , 518634 , 503712 , 556496 , 579344 , 609057 , 486866 , 569450 , 519679 , 511370 );
Copy
5
2.71 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
435798
435880
445721
445752
446049
446656
448470
449297
449310
450074
451157
452548
459996
460431
461022
461658
462843
473724
474805
477848
486866
490675
498266
503712
504553
505591
511370
514568
518634
519679
525435
547593
556496
558573
565808
569450
579344
583347
583739
584812
585554
594245
596402
596778
597519
601679
602293
603184
604785
609057
617793
631625
638878
641552
681220
706029
707463
728924
733415
749430
750514
752849
753193
756768
757234
760602
778811
783211
783215
784126
785348
804622
807589
809217
811571
]
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 (435798 , 435880 , 445721 , 445752 , 446049 , 446656 , 448470 , 449297 , 449310 , 450074 , 451157 , 452548 , 459996 , 460431 , 461022 , 461658 , 462843 , 473724 , 474805 , 477848 , 486866 , 490675 , 498266 , 503712 , 504553 , 505591 , 511370 , 514568 , 518634 , 519679 , 525435 , 547593 , 556496 , 558573 , 565808 , 569450 , 579344 , 583347 , 583739 , 584812 , 585554 , 594245 , 596402 , 596778 , 597519 , 601679 , 602293 , 603184 , 604785 , 609057 , 617793 , 631625 , 638878 , 641552 , 681220 , 706029 , 707463 , 728924 , 733415 , 749430 , 750514 , 752849 , 753193 , 756768 , 757234 , 760602 , 778811 , 783211 , 783215 , 784126 , 785348 , 804622 , 807589 , 809217 , 811571 );
Copy
6
80.75 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
435798
435880
445721
445752
446049
446656
448470
449297
449310
450074
451157
452548
459996
460431
461022
461658
462843
473724
474805
477848
486866
490675
498266
503712
504553
505591
511370
514568
518634
519679
525435
547593
556496
558573
565808
569450
579344
583347
583739
584812
585554
594245
596402
596778
597519
601679
602293
603184
604785
609057
617793
631625
638878
641552
681220
706029
707463
728924
733415
749430
750514
752849
753193
756768
757234
760602
778811
783211
783215
784126
785348
804622
807589
809217
811571
]
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 (435798 , 435880 , 445721 , 445752 , 446049 , 446656 , 448470 , 449297 , 449310 , 450074 , 451157 , 452548 , 459996 , 460431 , 461022 , 461658 , 462843 , 473724 , 474805 , 477848 , 486866 , 490675 , 498266 , 503712 , 504553 , 505591 , 511370 , 514568 , 518634 , 519679 , 525435 , 547593 , 556496 , 558573 , 565808 , 569450 , 579344 , 583347 , 583739 , 584812 , 585554 , 594245 , 596402 , 596778 , 597519 , 601679 , 602293 , 603184 , 604785 , 609057 , 617793 , 631625 , 638878 , 641552 , 681220 , 706029 , 707463 , 728924 , 733415 , 749430 , 750514 , 752849 , 753193 , 756768 , 757234 , 760602 , 778811 , 783211 , 783215 , 784126 , 785348 , 804622 , 807589 , 809217 , 811571 );
Copy