3
10.43 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
801918
459963
777119
724823
800793
803603
696999
781998
633788
814490
634134
715896
811470
811646
733910
523536
770499
733882
626534
774691
790950
413637
666732
478654
536897
662080
777080
402746
396699
666723
747235
515058
665923
750789
522937
626538
492124
443729
414070
545399
593724
733894
510393
656319
732316
429802
444660
747222
420331
637016
470903
566112
508699
750790
750115
750788
632006
747223
747194
561748
747195
747228
747231
747236
]
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 (801918 , 459963 , 777119 , 724823 , 800793 , 803603 , 696999 , 781998 , 633788 , 814490 , 634134 , 715896 , 811470 , 811646 , 733910 , 523536 , 770499 , 733882 , 626534 , 774691 , 790950 , 413637 , 666732 , 478654 , 536897 , 662080 , 777080 , 402746 , 396699 , 666723 , 747235 , 515058 , 665923 , 750789 , 522937 , 626538 , 492124 , 443729 , 414070 , 545399 , 593724 , 733894 , 510393 , 656319 , 732316 , 429802 , 444660 , 747222 , 420331 , 637016 , 470903 , 566112 , 508699 , 750790 , 750115 , 750788 , 632006 , 747223 , 747194 , 561748 , 747195 , 747228 , 747231 , 747236 );
Copy
4
212.65 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
396699
402746
413637
414070
420331
429802
443729
444660
459963
470903
478654
492124
508699
510393
515058
522937
523536
536897
545399
561748
566112
593724
626534
626538
632006
633788
634134
637016
656319
662080
665923
666723
666732
696999
715896
724823
732316
733882
733894
733910
747194
747195
747222
747223
747228
747231
747235
747236
750115
750788
750789
750790
770499
774691
777080
777119
781998
790950
800793
801918
803603
811470
811646
814490
]
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 (396699 , 402746 , 413637 , 414070 , 420331 , 429802 , 443729 , 444660 , 459963 , 470903 , 478654 , 492124 , 508699 , 510393 , 515058 , 522937 , 523536 , 536897 , 545399 , 561748 , 566112 , 593724 , 626534 , 626538 , 632006 , 633788 , 634134 , 637016 , 656319 , 662080 , 665923 , 666723 , 666732 , 696999 , 715896 , 724823 , 732316 , 733882 , 733894 , 733910 , 747194 , 747195 , 747222 , 747223 , 747228 , 747231 , 747235 , 747236 , 750115 , 750788 , 750789 , 750790 , 770499 , 774691 , 777080 , 777119 , 781998 , 790950 , 800793 , 801918 , 803603 , 811470 , 811646 , 814490 );
Copy
5
73.43 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
396699
402746
413637
414070
420331
429802
443729
444660
459963
470903
478654
492124
508699
510393
515058
522937
523536
536897
545399
561748
566112
593724
626534
626538
632006
633788
634134
637016
656319
662080
665923
666723
666732
696999
715896
724823
732316
733882
733894
733910
747194
747195
747222
747223
747228
747231
747235
747236
750115
750788
750789
750790
770499
774691
777080
777119
781998
790950
800793
801918
803603
811470
811646
814490
]
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 (396699 , 402746 , 413637 , 414070 , 420331 , 429802 , 443729 , 444660 , 459963 , 470903 , 478654 , 492124 , 508699 , 510393 , 515058 , 522937 , 523536 , 536897 , 545399 , 561748 , 566112 , 593724 , 626534 , 626538 , 632006 , 633788 , 634134 , 637016 , 656319 , 662080 , 665923 , 666723 , 666732 , 696999 , 715896 , 724823 , 732316 , 733882 , 733894 , 733910 , 747194 , 747195 , 747222 , 747223 , 747228 , 747231 , 747235 , 747236 , 750115 , 750788 , 750789 , 750790 , 770499 , 774691 , 777080 , 777119 , 781998 , 790950 , 800793 , 801918 , 803603 , 811470 , 811646 , 814490 );
Copy