3
15.29 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
825019
768220
810615
779502
809188
767520
765731
327378
810593
769636
403242
630687
470142
717261
793711
805627
716681
779598
423714
605433
742929
743414
809135
575303
765768
790719
791065
777090
436066
717845
719794
790475
797435
434569
493264
548017
770392
327421
677828
419931
439837
463495
417828
524299
613924
716703
603142
435207
631120
825177
797547
806731
767548
411446
780288
793442
748919
790889
495707
650053
764528
423504
818504
706851
656629
447261
497962
719765
446234
506255
588237
459749
451018
517673
]
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 (825019 , 768220 , 810615 , 779502 , 809188 , 767520 , 765731 , 327378 , 810593 , 769636 , 403242 , 630687 , 470142 , 717261 , 793711 , 805627 , 716681 , 779598 , 423714 , 605433 , 742929 , 743414 , 809135 , 575303 , 765768 , 790719 , 791065 , 777090 , 436066 , 717845 , 719794 , 790475 , 797435 , 434569 , 493264 , 548017 , 770392 , 327421 , 677828 , 419931 , 439837 , 463495 , 417828 , 524299 , 613924 , 716703 , 603142 , 435207 , 631120 , 825177 , 797547 , 806731 , 767548 , 411446 , 780288 , 793442 , 748919 , 790889 , 495707 , 650053 , 764528 , 423504 , 818504 , 706851 , 656629 , 447261 , 497962 , 719765 , 446234 , 506255 , 588237 , 459749 , 451018 , 517673 );
Copy
4
3.56 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
327378
327421
403242
411446
417828
419931
423504
423714
434569
435207
436066
439837
446234
447261
451018
459749
463495
470142
493264
495707
497962
506255
517673
524299
548017
575303
588237
603142
605433
613924
630687
631120
650053
656629
677828
706851
716681
716703
717261
717845
719765
719794
742929
743414
748919
764528
765731
765768
767520
767548
768220
769636
770392
777090
779502
779598
780288
790475
790719
790889
791065
793442
793711
797435
797547
805627
806731
809135
809188
810593
810615
818504
825019
825177
]
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 (327378 , 327421 , 403242 , 411446 , 417828 , 419931 , 423504 , 423714 , 434569 , 435207 , 436066 , 439837 , 446234 , 447261 , 451018 , 459749 , 463495 , 470142 , 493264 , 495707 , 497962 , 506255 , 517673 , 524299 , 548017 , 575303 , 588237 , 603142 , 605433 , 613924 , 630687 , 631120 , 650053 , 656629 , 677828 , 706851 , 716681 , 716703 , 717261 , 717845 , 719765 , 719794 , 742929 , 743414 , 748919 , 764528 , 765731 , 765768 , 767520 , 767548 , 768220 , 769636 , 770392 , 777090 , 779502 , 779598 , 780288 , 790475 , 790719 , 790889 , 791065 , 793442 , 793711 , 797435 , 797547 , 805627 , 806731 , 809135 , 809188 , 810593 , 810615 , 818504 , 825019 , 825177 );
Copy
5
104.85 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
327378
327421
403242
411446
417828
419931
423504
423714
434569
435207
436066
439837
446234
447261
451018
459749
463495
470142
493264
495707
497962
506255
517673
524299
548017
575303
588237
603142
605433
613924
630687
631120
650053
656629
677828
706851
716681
716703
717261
717845
719765
719794
742929
743414
748919
764528
765731
765768
767520
767548
768220
769636
770392
777090
779502
779598
780288
790475
790719
790889
791065
793442
793711
797435
797547
805627
806731
809135
809188
810593
810615
818504
825019
825177
]
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 (327378 , 327421 , 403242 , 411446 , 417828 , 419931 , 423504 , 423714 , 434569 , 435207 , 436066 , 439837 , 446234 , 447261 , 451018 , 459749 , 463495 , 470142 , 493264 , 495707 , 497962 , 506255 , 517673 , 524299 , 548017 , 575303 , 588237 , 603142 , 605433 , 613924 , 630687 , 631120 , 650053 , 656629 , 677828 , 706851 , 716681 , 716703 , 717261 , 717845 , 719765 , 719794 , 742929 , 743414 , 748919 , 764528 , 765731 , 765768 , 767520 , 767548 , 768220 , 769636 , 770392 , 777090 , 779502 , 779598 , 780288 , 790475 , 790719 , 790889 , 791065 , 793442 , 793711 , 797435 , 797547 , 805627 , 806731 , 809135 , 809188 , 810593 , 810615 , 818504 , 825019 , 825177 );
Copy