3
9.65 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
749025
708742
790670
758890
749019
785768
784031
746793
771049
770997
696428
650383
708756
709964
749015
771063
764344
708603
775030
784047
712744
708630
714018
775725
811527
748699
758255
732938
769532
785440
713053
721858
623628
739853
772547
755455
808577
725694
756711
764337
784005
660048
712765
708031
708585
708666
725687
725689
756689
725696
709747
523299
457483
681579
720447
665990
756801
712763
585124
495267
807141
712230
480291
544824
618239
649953
624084
487703
]
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 (749025 , 708742 , 790670 , 758890 , 749019 , 785768 , 784031 , 746793 , 771049 , 770997 , 696428 , 650383 , 708756 , 709964 , 749015 , 771063 , 764344 , 708603 , 775030 , 784047 , 712744 , 708630 , 714018 , 775725 , 811527 , 748699 , 758255 , 732938 , 769532 , 785440 , 713053 , 721858 , 623628 , 739853 , 772547 , 755455 , 808577 , 725694 , 756711 , 764337 , 784005 , 660048 , 712765 , 708031 , 708585 , 708666 , 725687 , 725689 , 756689 , 725696 , 709747 , 523299 , 457483 , 681579 , 720447 , 665990 , 756801 , 712763 , 585124 , 495267 , 807141 , 712230 , 480291 , 544824 , 618239 , 649953 , 624084 , 487703 );
Copy
4
2.73 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
457483
480291
487703
495267
523299
544824
585124
618239
623628
624084
649953
650383
660048
665990
681579
696428
708031
708585
708603
708630
708666
708742
708756
709747
709964
712230
712744
712763
712765
713053
714018
720447
721858
725687
725689
725694
725696
732938
739853
746793
748699
749015
749019
749025
755455
756689
756711
756801
758255
758890
764337
764344
769532
770997
771049
771063
772547
775030
775725
784005
784031
784047
785440
785768
790670
807141
808577
811527
]
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 (457483 , 480291 , 487703 , 495267 , 523299 , 544824 , 585124 , 618239 , 623628 , 624084 , 649953 , 650383 , 660048 , 665990 , 681579 , 696428 , 708031 , 708585 , 708603 , 708630 , 708666 , 708742 , 708756 , 709747 , 709964 , 712230 , 712744 , 712763 , 712765 , 713053 , 714018 , 720447 , 721858 , 725687 , 725689 , 725694 , 725696 , 732938 , 739853 , 746793 , 748699 , 749015 , 749019 , 749025 , 755455 , 756689 , 756711 , 756801 , 758255 , 758890 , 764337 , 764344 , 769532 , 770997 , 771049 , 771063 , 772547 , 775030 , 775725 , 784005 , 784031 , 784047 , 785440 , 785768 , 790670 , 807141 , 808577 , 811527 );
Copy
5
81.73 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
457483
480291
487703
495267
523299
544824
585124
618239
623628
624084
649953
650383
660048
665990
681579
696428
708031
708585
708603
708630
708666
708742
708756
709747
709964
712230
712744
712763
712765
713053
714018
720447
721858
725687
725689
725694
725696
732938
739853
746793
748699
749015
749019
749025
755455
756689
756711
756801
758255
758890
764337
764344
769532
770997
771049
771063
772547
775030
775725
784005
784031
784047
785440
785768
790670
807141
808577
811527
]
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 (457483 , 480291 , 487703 , 495267 , 523299 , 544824 , 585124 , 618239 , 623628 , 624084 , 649953 , 650383 , 660048 , 665990 , 681579 , 696428 , 708031 , 708585 , 708603 , 708630 , 708666 , 708742 , 708756 , 709747 , 709964 , 712230 , 712744 , 712763 , 712765 , 713053 , 714018 , 720447 , 721858 , 725687 , 725689 , 725694 , 725696 , 732938 , 739853 , 746793 , 748699 , 749015 , 749019 , 749025 , 755455 , 756689 , 756711 , 756801 , 758255 , 758890 , 764337 , 764344 , 769532 , 770997 , 771049 , 771063 , 772547 , 775030 , 775725 , 784005 , 784031 , 784047 , 785440 , 785768 , 790670 , 807141 , 808577 , 811527 );
Copy