3
11.75 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
500598
611232
785403
618071
557255
652357
530195
759134
507159
534667
511579
750996
457767
556673
511584
457576
552278
513204
811959
752919
588196
785379
788641
534958
526978
601220
787162
750149
687664
621514
805285
796965
605226
604793
642982
398128
620642
503033
721995
804389
811957
809772
735128
609178
452225
488280
452212
714027
637301
613577
726409
735408
634712
641479
734137
534335
541158
438415
532638
678439
618009
468985
585338
514423
452223
530548
534346
513110
534347
555365
708517
633408
463708
547755
]
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 (500598 , 611232 , 785403 , 618071 , 557255 , 652357 , 530195 , 759134 , 507159 , 534667 , 511579 , 750996 , 457767 , 556673 , 511584 , 457576 , 552278 , 513204 , 811959 , 752919 , 588196 , 785379 , 788641 , 534958 , 526978 , 601220 , 787162 , 750149 , 687664 , 621514 , 805285 , 796965 , 605226 , 604793 , 642982 , 398128 , 620642 , 503033 , 721995 , 804389 , 811957 , 809772 , 735128 , 609178 , 452225 , 488280 , 452212 , 714027 , 637301 , 613577 , 726409 , 735408 , 634712 , 641479 , 734137 , 534335 , 541158 , 438415 , 532638 , 678439 , 618009 , 468985 , 585338 , 514423 , 452223 , 530548 , 534346 , 513110 , 534347 , 555365 , 708517 , 633408 , 463708 , 547755 );
Copy
4
2.57 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
398128
438415
452212
452223
452225
457576
457767
463708
468985
488280
500598
503033
507159
511579
511584
513110
513204
514423
526978
530195
530548
532638
534335
534346
534347
534667
534958
541158
547755
552278
555365
556673
557255
585338
588196
601220
604793
605226
609178
611232
613577
618009
618071
620642
621514
633408
634712
637301
641479
642982
652357
678439
687664
708517
714027
721995
726409
734137
735128
735408
750149
750996
752919
759134
785379
785403
787162
788641
796965
804389
805285
809772
811957
811959
]
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 (398128 , 438415 , 452212 , 452223 , 452225 , 457576 , 457767 , 463708 , 468985 , 488280 , 500598 , 503033 , 507159 , 511579 , 511584 , 513110 , 513204 , 514423 , 526978 , 530195 , 530548 , 532638 , 534335 , 534346 , 534347 , 534667 , 534958 , 541158 , 547755 , 552278 , 555365 , 556673 , 557255 , 585338 , 588196 , 601220 , 604793 , 605226 , 609178 , 611232 , 613577 , 618009 , 618071 , 620642 , 621514 , 633408 , 634712 , 637301 , 641479 , 642982 , 652357 , 678439 , 687664 , 708517 , 714027 , 721995 , 726409 , 734137 , 735128 , 735408 , 750149 , 750996 , 752919 , 759134 , 785379 , 785403 , 787162 , 788641 , 796965 , 804389 , 805285 , 809772 , 811957 , 811959 );
Copy
5
81.74 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
398128
438415
452212
452223
452225
457576
457767
463708
468985
488280
500598
503033
507159
511579
511584
513110
513204
514423
526978
530195
530548
532638
534335
534346
534347
534667
534958
541158
547755
552278
555365
556673
557255
585338
588196
601220
604793
605226
609178
611232
613577
618009
618071
620642
621514
633408
634712
637301
641479
642982
652357
678439
687664
708517
714027
721995
726409
734137
735128
735408
750149
750996
752919
759134
785379
785403
787162
788641
796965
804389
805285
809772
811957
811959
]
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 (398128 , 438415 , 452212 , 452223 , 452225 , 457576 , 457767 , 463708 , 468985 , 488280 , 500598 , 503033 , 507159 , 511579 , 511584 , 513110 , 513204 , 514423 , 526978 , 530195 , 530548 , 532638 , 534335 , 534346 , 534347 , 534667 , 534958 , 541158 , 547755 , 552278 , 555365 , 556673 , 557255 , 585338 , 588196 , 601220 , 604793 , 605226 , 609178 , 611232 , 613577 , 618009 , 618071 , 620642 , 621514 , 633408 , 634712 , 637301 , 641479 , 642982 , 652357 , 678439 , 687664 , 708517 , 714027 , 721995 , 726409 , 734137 , 735128 , 735408 , 750149 , 750996 , 752919 , 759134 , 785379 , 785403 , 787162 , 788641 , 796965 , 804389 , 805285 , 809772 , 811957 , 811959 );
Copy