3
12.88 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
416346
606101
795593
397918
650195
602652
602632
619477
401196
491566
553496
408831
800030
734484
819515
802723
729635
401216
415567
425976
502812
592036
806084
761275
569068
606608
478155
561005
417736
606599
603610
476227
551922
538817
591296
443167
446085
428512
457988
453125
619480
589747
569198
465520
569532
596960
443163
541336
419503
512541
587542
520945
630405
805874
480772
401933
506467
466927
428509
428533
606624
482686
541759
428531
482555
584063
583981
518858
587833
484870
526104
624084
521159
]
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 (416346 , 606101 , 795593 , 397918 , 650195 , 602652 , 602632 , 619477 , 401196 , 491566 , 553496 , 408831 , 800030 , 734484 , 819515 , 802723 , 729635 , 401216 , 415567 , 425976 , 502812 , 592036 , 806084 , 761275 , 569068 , 606608 , 478155 , 561005 , 417736 , 606599 , 603610 , 476227 , 551922 , 538817 , 591296 , 443167 , 446085 , 428512 , 457988 , 453125 , 619480 , 589747 , 569198 , 465520 , 569532 , 596960 , 443163 , 541336 , 419503 , 512541 , 587542 , 520945 , 630405 , 805874 , 480772 , 401933 , 506467 , 466927 , 428509 , 428533 , 606624 , 482686 , 541759 , 428531 , 482555 , 584063 , 583981 , 518858 , 587833 , 484870 , 526104 , 624084 , 521159 );
Copy
4
2.62 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
397918
401196
401216
401933
408831
415567
416346
417736
419503
425976
428509
428512
428531
428533
443163
443167
446085
453125
457988
465520
466927
476227
478155
480772
482555
482686
484870
491566
502812
506467
512541
518858
520945
521159
526104
538817
541336
541759
551922
553496
561005
569068
569198
569532
583981
584063
587542
587833
589747
591296
592036
596960
602632
602652
603610
606101
606599
606608
606624
619477
619480
624084
630405
650195
729635
734484
761275
795593
800030
802723
805874
806084
819515
]
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 (397918 , 401196 , 401216 , 401933 , 408831 , 415567 , 416346 , 417736 , 419503 , 425976 , 428509 , 428512 , 428531 , 428533 , 443163 , 443167 , 446085 , 453125 , 457988 , 465520 , 466927 , 476227 , 478155 , 480772 , 482555 , 482686 , 484870 , 491566 , 502812 , 506467 , 512541 , 518858 , 520945 , 521159 , 526104 , 538817 , 541336 , 541759 , 551922 , 553496 , 561005 , 569068 , 569198 , 569532 , 583981 , 584063 , 587542 , 587833 , 589747 , 591296 , 592036 , 596960 , 602632 , 602652 , 603610 , 606101 , 606599 , 606608 , 606624 , 619477 , 619480 , 624084 , 630405 , 650195 , 729635 , 734484 , 761275 , 795593 , 800030 , 802723 , 805874 , 806084 , 819515 );
Copy
5
83.32 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
397918
401196
401216
401933
408831
415567
416346
417736
419503
425976
428509
428512
428531
428533
443163
443167
446085
453125
457988
465520
466927
476227
478155
480772
482555
482686
484870
491566
502812
506467
512541
518858
520945
521159
526104
538817
541336
541759
551922
553496
561005
569068
569198
569532
583981
584063
587542
587833
589747
591296
592036
596960
602632
602652
603610
606101
606599
606608
606624
619477
619480
624084
630405
650195
729635
734484
761275
795593
800030
802723
805874
806084
819515
]
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 (397918 , 401196 , 401216 , 401933 , 408831 , 415567 , 416346 , 417736 , 419503 , 425976 , 428509 , 428512 , 428531 , 428533 , 443163 , 443167 , 446085 , 453125 , 457988 , 465520 , 466927 , 476227 , 478155 , 480772 , 482555 , 482686 , 484870 , 491566 , 502812 , 506467 , 512541 , 518858 , 520945 , 521159 , 526104 , 538817 , 541336 , 541759 , 551922 , 553496 , 561005 , 569068 , 569198 , 569532 , 583981 , 584063 , 587542 , 587833 , 589747 , 591296 , 592036 , 596960 , 602632 , 602652 , 603610 , 606101 , 606599 , 606608 , 606624 , 619477 , 619480 , 624084 , 630405 , 650195 , 729635 , 734484 , 761275 , 795593 , 800030 , 802723 , 805874 , 806084 , 819515 );
Copy