3
13.90 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
722407
723123
771023
817111
556069
777075
661565
389482
675588
712880
639253
385119
712879
704864
716743
793740
763063
421653
817891
695843
612578
642662
746137
389226
390375
596349
622589
444819
398784
570411
618415
622923
786791
454292
448843
579213
673662
719192
589360
803600
805000
747646
780467
785624
799212
421594
519595
542079
553251
564367
719765
589942
737110
444779
514928
62010
455149
440613
528873
527978
541060
561058
567537
590750
748684
422832
418879
527742
577699
423893
516025
519556
486102
]
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 (722407 , 723123 , 771023 , 817111 , 556069 , 777075 , 661565 , 389482 , 675588 , 712880 , 639253 , 385119 , 712879 , 704864 , 716743 , 793740 , 763063 , 421653 , 817891 , 695843 , 612578 , 642662 , 746137 , 389226 , 390375 , 596349 , 622589 , 444819 , 398784 , 570411 , 618415 , 622923 , 786791 , 454292 , 448843 , 579213 , 673662 , 719192 , 589360 , 803600 , 805000 , 747646 , 780467 , 785624 , 799212 , 421594 , 519595 , 542079 , 553251 , 564367 , 719765 , 589942 , 737110 , 444779 , 514928 , 62010 , 455149 , 440613 , 528873 , 527978 , 541060 , 561058 , 567537 , 590750 , 748684 , 422832 , 418879 , 527742 , 577699 , 423893 , 516025 , 519556 , 486102 );
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
62010
385119
389226
389482
390375
398784
418879
421594
421653
422832
423893
440613
444779
444819
448843
454292
455149
486102
514928
516025
519556
519595
527742
527978
528873
541060
542079
553251
556069
561058
564367
567537
570411
577699
579213
589360
589942
590750
596349
612578
618415
622589
622923
639253
642662
661565
673662
675588
695843
704864
712879
712880
716743
719192
719765
722407
723123
737110
746137
747646
748684
771023
777075
780467
785624
786791
793740
799212
803600
805000
817111
817891
]
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 (62010 , 385119 , 389226 , 389482 , 390375 , 398784 , 418879 , 421594 , 421653 , 422832 , 423893 , 440613 , 444779 , 444819 , 448843 , 454292 , 455149 , 486102 , 514928 , 516025 , 519556 , 519595 , 527742 , 527978 , 528873 , 541060 , 542079 , 553251 , 556069 , 561058 , 564367 , 567537 , 570411 , 577699 , 579213 , 589360 , 589942 , 590750 , 596349 , 612578 , 618415 , 622589 , 622923 , 639253 , 642662 , 661565 , 673662 , 675588 , 695843 , 704864 , 712879 , 712880 , 716743 , 719192 , 719765 , 722407 , 723123 , 737110 , 746137 , 747646 , 748684 , 771023 , 777075 , 780467 , 785624 , 786791 , 793740 , 799212 , 803600 , 805000 , 817111 , 817891 );
Copy
5
78.72 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
62010
385119
389226
389482
390375
398784
418879
421594
421653
422832
423893
440613
444779
444819
448843
454292
455149
486102
514928
516025
519556
519595
527742
527978
528873
541060
542079
553251
556069
561058
564367
567537
570411
577699
579213
589360
589942
590750
596349
612578
618415
622589
622923
639253
642662
661565
673662
675588
695843
704864
712879
712880
716743
719192
719765
722407
723123
737110
746137
747646
748684
771023
777075
780467
785624
786791
793740
799212
803600
805000
817111
817891
]
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 (62010 , 385119 , 389226 , 389482 , 390375 , 398784 , 418879 , 421594 , 421653 , 422832 , 423893 , 440613 , 444779 , 444819 , 448843 , 454292 , 455149 , 486102 , 514928 , 516025 , 519556 , 519595 , 527742 , 527978 , 528873 , 541060 , 542079 , 553251 , 556069 , 561058 , 564367 , 567537 , 570411 , 577699 , 579213 , 589360 , 589942 , 590750 , 596349 , 612578 , 618415 , 622589 , 622923 , 639253 , 642662 , 661565 , 673662 , 675588 , 695843 , 704864 , 712879 , 712880 , 716743 , 719192 , 719765 , 722407 , 723123 , 737110 , 746137 , 747646 , 748684 , 771023 , 777075 , 780467 , 785624 , 786791 , 793740 , 799212 , 803600 , 805000 , 817111 , 817891 );
Copy