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