3
13.73 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
810683
806043
608800
765874
512939
417362
797445
535802
763748
530286
801079
806035
807203
473260
709804
420354
541128
562785
799070
414911
458571
827918
541374
684064
709445
752148
797675
502762
419631
475537
453228
788118
784157
709198
529471
417782
453028
455855
465006
574553
457974
427970
482936
510885
538267
579629
716496
579633
784158
786463
788268
477114
522907
485150
525061
511336
520630
788264
716394
535805
575810
420358
492097
579647
535808
470441
]
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 (810683 , 806043 , 608800 , 765874 , 512939 , 417362 , 797445 , 535802 , 763748 , 530286 , 801079 , 806035 , 807203 , 473260 , 709804 , 420354 , 541128 , 562785 , 799070 , 414911 , 458571 , 827918 , 541374 , 684064 , 709445 , 752148 , 797675 , 502762 , 419631 , 475537 , 453228 , 788118 , 784157 , 709198 , 529471 , 417782 , 453028 , 455855 , 465006 , 574553 , 457974 , 427970 , 482936 , 510885 , 538267 , 579629 , 716496 , 579633 , 784158 , 786463 , 788268 , 477114 , 522907 , 485150 , 525061 , 511336 , 520630 , 788264 , 716394 , 535805 , 575810 , 420358 , 492097 , 579647 , 535808 , 470441 );
Copy
4
3.33 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
414911
417362
417782
419631
420354
420358
427970
453028
453228
455855
457974
458571
465006
470441
473260
475537
477114
482936
485150
492097
502762
510885
511336
512939
520630
522907
525061
529471
530286
535802
535805
535808
538267
541128
541374
562785
574553
575810
579629
579633
579647
608800
684064
709198
709445
709804
716394
716496
752148
763748
765874
784157
784158
786463
788118
788264
788268
797445
797675
799070
801079
806035
806043
807203
810683
827918
]
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 (414911 , 417362 , 417782 , 419631 , 420354 , 420358 , 427970 , 453028 , 453228 , 455855 , 457974 , 458571 , 465006 , 470441 , 473260 , 475537 , 477114 , 482936 , 485150 , 492097 , 502762 , 510885 , 511336 , 512939 , 520630 , 522907 , 525061 , 529471 , 530286 , 535802 , 535805 , 535808 , 538267 , 541128 , 541374 , 562785 , 574553 , 575810 , 579629 , 579633 , 579647 , 608800 , 684064 , 709198 , 709445 , 709804 , 716394 , 716496 , 752148 , 763748 , 765874 , 784157 , 784158 , 786463 , 788118 , 788264 , 788268 , 797445 , 797675 , 799070 , 801079 , 806035 , 806043 , 807203 , 810683 , 827918 );
Copy
5
119.34 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
414911
417362
417782
419631
420354
420358
427970
453028
453228
455855
457974
458571
465006
470441
473260
475537
477114
482936
485150
492097
502762
510885
511336
512939
520630
522907
525061
529471
530286
535802
535805
535808
538267
541128
541374
562785
574553
575810
579629
579633
579647
608800
684064
709198
709445
709804
716394
716496
752148
763748
765874
784157
784158
786463
788118
788264
788268
797445
797675
799070
801079
806035
806043
807203
810683
827918
]
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 (414911 , 417362 , 417782 , 419631 , 420354 , 420358 , 427970 , 453028 , 453228 , 455855 , 457974 , 458571 , 465006 , 470441 , 473260 , 475537 , 477114 , 482936 , 485150 , 492097 , 502762 , 510885 , 511336 , 512939 , 520630 , 522907 , 525061 , 529471 , 530286 , 535802 , 535805 , 535808 , 538267 , 541128 , 541374 , 562785 , 574553 , 575810 , 579629 , 579633 , 579647 , 608800 , 684064 , 709198 , 709445 , 709804 , 716394 , 716496 , 752148 , 763748 , 765874 , 784157 , 784158 , 786463 , 788118 , 788264 , 788268 , 797445 , 797675 , 799070 , 801079 , 806035 , 806043 , 807203 , 810683 , 827918 );
Copy