3
10.13 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
816824
745686
713042
453657
409759
767941
738013
486946
472883
623889
700540
485187
702077
457688
523422
704560
698289
512790
523478
550611
486540
425523
565050
702087
591585
458719
726237
800479
756973
620300
782532
619582
620302
805504
714460
630773
696235
810838
726171
734626
400690
538275
413890
565004
559685
592820
732898
427282
521851
688105
598935
402027
397329
505978
409682
506619
709449
598836
617086
706286
412288
449678
565061
580214
603909
538273
728452
447209
443963
434055
442946
564826
460673
675006
534645
]
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 (816824 , 745686 , 713042 , 453657 , 409759 , 767941 , 738013 , 486946 , 472883 , 623889 , 700540 , 485187 , 702077 , 457688 , 523422 , 704560 , 698289 , 512790 , 523478 , 550611 , 486540 , 425523 , 565050 , 702087 , 591585 , 458719 , 726237 , 800479 , 756973 , 620300 , 782532 , 619582 , 620302 , 805504 , 714460 , 630773 , 696235 , 810838 , 726171 , 734626 , 400690 , 538275 , 413890 , 565004 , 559685 , 592820 , 732898 , 427282 , 521851 , 688105 , 598935 , 402027 , 397329 , 505978 , 409682 , 506619 , 709449 , 598836 , 617086 , 706286 , 412288 , 449678 , 565061 , 580214 , 603909 , 538273 , 728452 , 447209 , 443963 , 434055 , 442946 , 564826 , 460673 , 675006 , 534645 );
Copy
4
2.67 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
397329
400690
402027
409682
409759
412288
413890
425523
427282
434055
442946
443963
447209
449678
453657
457688
458719
460673
472883
485187
486540
486946
505978
506619
512790
521851
523422
523478
534645
538273
538275
550611
559685
564826
565004
565050
565061
580214
591585
592820
598836
598935
603909
617086
619582
620300
620302
623889
630773
675006
688105
696235
698289
700540
702077
702087
704560
706286
709449
713042
714460
726171
726237
728452
732898
734626
738013
745686
756973
767941
782532
800479
805504
810838
816824
]
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 (397329 , 400690 , 402027 , 409682 , 409759 , 412288 , 413890 , 425523 , 427282 , 434055 , 442946 , 443963 , 447209 , 449678 , 453657 , 457688 , 458719 , 460673 , 472883 , 485187 , 486540 , 486946 , 505978 , 506619 , 512790 , 521851 , 523422 , 523478 , 534645 , 538273 , 538275 , 550611 , 559685 , 564826 , 565004 , 565050 , 565061 , 580214 , 591585 , 592820 , 598836 , 598935 , 603909 , 617086 , 619582 , 620300 , 620302 , 623889 , 630773 , 675006 , 688105 , 696235 , 698289 , 700540 , 702077 , 702087 , 704560 , 706286 , 709449 , 713042 , 714460 , 726171 , 726237 , 728452 , 732898 , 734626 , 738013 , 745686 , 756973 , 767941 , 782532 , 800479 , 805504 , 810838 , 816824 );
Copy
5
91.71 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
397329
400690
402027
409682
409759
412288
413890
425523
427282
434055
442946
443963
447209
449678
453657
457688
458719
460673
472883
485187
486540
486946
505978
506619
512790
521851
523422
523478
534645
538273
538275
550611
559685
564826
565004
565050
565061
580214
591585
592820
598836
598935
603909
617086
619582
620300
620302
623889
630773
675006
688105
696235
698289
700540
702077
702087
704560
706286
709449
713042
714460
726171
726237
728452
732898
734626
738013
745686
756973
767941
782532
800479
805504
810838
816824
]
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 (397329 , 400690 , 402027 , 409682 , 409759 , 412288 , 413890 , 425523 , 427282 , 434055 , 442946 , 443963 , 447209 , 449678 , 453657 , 457688 , 458719 , 460673 , 472883 , 485187 , 486540 , 486946 , 505978 , 506619 , 512790 , 521851 , 523422 , 523478 , 534645 , 538273 , 538275 , 550611 , 559685 , 564826 , 565004 , 565050 , 565061 , 580214 , 591585 , 592820 , 598836 , 598935 , 603909 , 617086 , 619582 , 620300 , 620302 , 623889 , 630773 , 675006 , 688105 , 696235 , 698289 , 700540 , 702077 , 702087 , 704560 , 706286 , 709449 , 713042 , 714460 , 726171 , 726237 , 728452 , 732898 , 734626 , 738013 , 745686 , 756973 , 767941 , 782532 , 800479 , 805504 , 810838 , 816824 );
Copy