3
8.49 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
622412
827628
738868
502549
593488
630891
629936
630925
557206
554124
672258
711117
747552
755110
604156
648894
680769
584221
797663
766928
698457
631294
803742
730479
743870
617768
662872
648948
738804
797579
762811
557209
782298
799574
805283
798221
707506
793589
750852
669283
574280
813072
768790
788817
197345
424043
776505
726484
797532
800895
665990
615821
726517
590602
631466
462886
582590
808060
630919
591094
504768
]
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 (622412 , 827628 , 738868 , 502549 , 593488 , 630891 , 629936 , 630925 , 557206 , 554124 , 672258 , 711117 , 747552 , 755110 , 604156 , 648894 , 680769 , 584221 , 797663 , 766928 , 698457 , 631294 , 803742 , 730479 , 743870 , 617768 , 662872 , 648948 , 738804 , 797579 , 762811 , 557209 , 782298 , 799574 , 805283 , 798221 , 707506 , 793589 , 750852 , 669283 , 574280 , 813072 , 768790 , 788817 , 197345 , 424043 , 776505 , 726484 , 797532 , 800895 , 665990 , 615821 , 726517 , 590602 , 631466 , 462886 , 582590 , 808060 , 630919 , 591094 , 504768 );
Copy
4
2.61 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
197345
424043
462886
502549
504768
554124
557206
557209
574280
582590
584221
590602
591094
593488
604156
615821
617768
622412
629936
630891
630919
630925
631294
631466
648894
648948
662872
665990
669283
672258
680769
698457
707506
711117
726484
726517
730479
738804
738868
743870
747552
750852
755110
762811
766928
768790
776505
782298
788817
793589
797532
797579
797663
798221
799574
800895
803742
805283
808060
813072
827628
]
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 (197345 , 424043 , 462886 , 502549 , 504768 , 554124 , 557206 , 557209 , 574280 , 582590 , 584221 , 590602 , 591094 , 593488 , 604156 , 615821 , 617768 , 622412 , 629936 , 630891 , 630919 , 630925 , 631294 , 631466 , 648894 , 648948 , 662872 , 665990 , 669283 , 672258 , 680769 , 698457 , 707506 , 711117 , 726484 , 726517 , 730479 , 738804 , 738868 , 743870 , 747552 , 750852 , 755110 , 762811 , 766928 , 768790 , 776505 , 782298 , 788817 , 793589 , 797532 , 797579 , 797663 , 798221 , 799574 , 800895 , 803742 , 805283 , 808060 , 813072 , 827628 );
Copy
5
87.95 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
197345
424043
462886
502549
504768
554124
557206
557209
574280
582590
584221
590602
591094
593488
604156
615821
617768
622412
629936
630891
630919
630925
631294
631466
648894
648948
662872
665990
669283
672258
680769
698457
707506
711117
726484
726517
730479
738804
738868
743870
747552
750852
755110
762811
766928
768790
776505
782298
788817
793589
797532
797579
797663
798221
799574
800895
803742
805283
808060
813072
827628
]
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 (197345 , 424043 , 462886 , 502549 , 504768 , 554124 , 557206 , 557209 , 574280 , 582590 , 584221 , 590602 , 591094 , 593488 , 604156 , 615821 , 617768 , 622412 , 629936 , 630891 , 630919 , 630925 , 631294 , 631466 , 648894 , 648948 , 662872 , 665990 , 669283 , 672258 , 680769 , 698457 , 707506 , 711117 , 726484 , 726517 , 730479 , 738804 , 738868 , 743870 , 747552 , 750852 , 755110 , 762811 , 766928 , 768790 , 776505 , 782298 , 788817 , 793589 , 797532 , 797579 , 797663 , 798221 , 799574 , 800895 , 803742 , 805283 , 808060 , 813072 , 827628 );
Copy