4
11.09 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
814494
576576
799018
743337
649998
504057
675276
686177
782470
514120
755383
401492
536210
744798
770158
720598
799019
541371
599906
592465
727465
538913
540203
687980
708465
562950
599834
599958
600279
599851
720627
600012
593173
635187
598941
599932
599864
628314
607325
540504
599915
599875
599899
601535
600296
599961
621698
599965
600022
547187
819634
651674
599967
758926
694184
634500
786167
386782
819545
463812
820970
661031
445279
693030
703509
762848
568347
648795
639790
514599
]
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 (814494 , 576576 , 799018 , 743337 , 649998 , 504057 , 675276 , 686177 , 782470 , 514120 , 755383 , 401492 , 536210 , 744798 , 770158 , 720598 , 799019 , 541371 , 599906 , 592465 , 727465 , 538913 , 540203 , 687980 , 708465 , 562950 , 599834 , 599958 , 600279 , 599851 , 720627 , 600012 , 593173 , 635187 , 598941 , 599932 , 599864 , 628314 , 607325 , 540504 , 599915 , 599875 , 599899 , 601535 , 600296 , 599961 , 621698 , 599965 , 600022 , 547187 , 819634 , 651674 , 599967 , 758926 , 694184 , 634500 , 786167 , 386782 , 819545 , 463812 , 820970 , 661031 , 445279 , 693030 , 703509 , 762848 , 568347 , 648795 , 639790 , 514599 );
Copy
5
2.53 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
386782
401492
445279
463812
504057
514120
514599
536210
538913
540203
540504
541371
547187
562950
568347
576576
592465
593173
598941
599834
599851
599864
599875
599899
599906
599915
599932
599958
599961
599965
599967
600012
600022
600279
600296
601535
607325
621698
628314
634500
635187
639790
648795
649998
651674
661031
675276
686177
687980
693030
694184
703509
708465
720598
720627
727465
743337
744798
755383
758926
762848
770158
782470
786167
799018
799019
814494
819545
819634
820970
]
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 (386782 , 401492 , 445279 , 463812 , 504057 , 514120 , 514599 , 536210 , 538913 , 540203 , 540504 , 541371 , 547187 , 562950 , 568347 , 576576 , 592465 , 593173 , 598941 , 599834 , 599851 , 599864 , 599875 , 599899 , 599906 , 599915 , 599932 , 599958 , 599961 , 599965 , 599967 , 600012 , 600022 , 600279 , 600296 , 601535 , 607325 , 621698 , 628314 , 634500 , 635187 , 639790 , 648795 , 649998 , 651674 , 661031 , 675276 , 686177 , 687980 , 693030 , 694184 , 703509 , 708465 , 720598 , 720627 , 727465 , 743337 , 744798 , 755383 , 758926 , 762848 , 770158 , 782470 , 786167 , 799018 , 799019 , 814494 , 819545 , 819634 , 820970 );
Copy
6
96.50 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
386782
401492
445279
463812
504057
514120
514599
536210
538913
540203
540504
541371
547187
562950
568347
576576
592465
593173
598941
599834
599851
599864
599875
599899
599906
599915
599932
599958
599961
599965
599967
600012
600022
600279
600296
601535
607325
621698
628314
634500
635187
639790
648795
649998
651674
661031
675276
686177
687980
693030
694184
703509
708465
720598
720627
727465
743337
744798
755383
758926
762848
770158
782470
786167
799018
799019
814494
819545
819634
820970
]
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 (386782 , 401492 , 445279 , 463812 , 504057 , 514120 , 514599 , 536210 , 538913 , 540203 , 540504 , 541371 , 547187 , 562950 , 568347 , 576576 , 592465 , 593173 , 598941 , 599834 , 599851 , 599864 , 599875 , 599899 , 599906 , 599915 , 599932 , 599958 , 599961 , 599965 , 599967 , 600012 , 600022 , 600279 , 600296 , 601535 , 607325 , 621698 , 628314 , 634500 , 635187 , 639790 , 648795 , 649998 , 651674 , 661031 , 675276 , 686177 , 687980 , 693030 , 694184 , 703509 , 708465 , 720598 , 720627 , 727465 , 743337 , 744798 , 755383 , 758926 , 762848 , 770158 , 782470 , 786167 , 799018 , 799019 , 814494 , 819545 , 819634 , 820970 );
Copy