3
10.61 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
787884
531993
810167
588134
745872
680744
750180
790521
629607
796208
561293
533413
559048
787780
573402
677746
447197
723352
787917
409222
790216
633092
457642
789755
790208
605065
811323
387364
620780
400210
412311
784429
805296
813268
460894
510175
710504
573401
571972
448227
501133
515805
583632
436447
403264
529253
523763
572898
442993
515023
577956
489971
464694
579040
601927
458928
510445
625436
558958
500420
483162
502144
467657
527802
508474
522663
578398
505278
547612
467981
621732
]
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 (787884 , 531993 , 810167 , 588134 , 745872 , 680744 , 750180 , 790521 , 629607 , 796208 , 561293 , 533413 , 559048 , 787780 , 573402 , 677746 , 447197 , 723352 , 787917 , 409222 , 790216 , 633092 , 457642 , 789755 , 790208 , 605065 , 811323 , 387364 , 620780 , 400210 , 412311 , 784429 , 805296 , 813268 , 460894 , 510175 , 710504 , 573401 , 571972 , 448227 , 501133 , 515805 , 583632 , 436447 , 403264 , 529253 , 523763 , 572898 , 442993 , 515023 , 577956 , 489971 , 464694 , 579040 , 601927 , 458928 , 510445 , 625436 , 558958 , 500420 , 483162 , 502144 , 467657 , 527802 , 508474 , 522663 , 578398 , 505278 , 547612 , 467981 , 621732 );
Copy
4
2.26 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
387364
400210
403264
409222
412311
436447
442993
447197
448227
457642
458928
460894
464694
467657
467981
483162
489971
500420
501133
502144
505278
508474
510175
510445
515023
515805
522663
523763
527802
529253
531993
533413
547612
558958
559048
561293
571972
572898
573402
577956
578398
579040
583632
588134
601927
605065
620780
621732
625436
629607
633092
677746
680744
710504
723352
745872
750180
784429
787780
787884
787917
789755
790208
790216
790521
796208
805296
810167
811323
813268
]
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 (387364 , 400210 , 403264 , 409222 , 412311 , 436447 , 442993 , 447197 , 448227 , 457642 , 458928 , 460894 , 464694 , 467657 , 467981 , 483162 , 489971 , 500420 , 501133 , 502144 , 505278 , 508474 , 510175 , 510445 , 515023 , 515805 , 522663 , 523763 , 527802 , 529253 , 531993 , 533413 , 547612 , 558958 , 559048 , 561293 , 571972 , 572898 , 573402 , 577956 , 578398 , 579040 , 583632 , 588134 , 601927 , 605065 , 620780 , 621732 , 625436 , 629607 , 633092 , 677746 , 680744 , 710504 , 723352 , 745872 , 750180 , 784429 , 787780 , 787884 , 787917 , 789755 , 790208 , 790216 , 790521 , 796208 , 805296 , 810167 , 811323 , 813268 );
Copy
5
74.32 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
387364
400210
403264
409222
412311
436447
442993
447197
448227
457642
458928
460894
464694
467657
467981
483162
489971
500420
501133
502144
505278
508474
510175
510445
515023
515805
522663
523763
527802
529253
531993
533413
547612
558958
559048
561293
571972
572898
573402
577956
578398
579040
583632
588134
601927
605065
620780
621732
625436
629607
633092
677746
680744
710504
723352
745872
750180
784429
787780
787884
787917
789755
790208
790216
790521
796208
805296
810167
811323
813268
]
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 (387364 , 400210 , 403264 , 409222 , 412311 , 436447 , 442993 , 447197 , 448227 , 457642 , 458928 , 460894 , 464694 , 467657 , 467981 , 483162 , 489971 , 500420 , 501133 , 502144 , 505278 , 508474 , 510175 , 510445 , 515023 , 515805 , 522663 , 523763 , 527802 , 529253 , 531993 , 533413 , 547612 , 558958 , 559048 , 561293 , 571972 , 572898 , 573402 , 577956 , 578398 , 579040 , 583632 , 588134 , 601927 , 605065 , 620780 , 621732 , 625436 , 629607 , 633092 , 677746 , 680744 , 710504 , 723352 , 745872 , 750180 , 784429 , 787780 , 787884 , 787917 , 789755 , 790208 , 790216 , 790521 , 796208 , 805296 , 810167 , 811323 , 813268 );
Copy