3
10.70 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
502642
758691
765055
745063
781397
555074
809223
459614
522250
823303
447785
462854
493513
582889
787121
765752
775241
445526
457279
802049
772535
475365
459488
521002
647682
631037
611290
424116
456705
649587
742010
464953
527956
598839
485790
662395
455838
473737
523577
692130
433486
780191
761189
746510
620266
567453
558411
599345
453368
453324
443971
496526
605762
615829
461064
579714
567757
574016
624131
545586
557236
511920
721133
]
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 (502642 , 758691 , 765055 , 745063 , 781397 , 555074 , 809223 , 459614 , 522250 , 823303 , 447785 , 462854 , 493513 , 582889 , 787121 , 765752 , 775241 , 445526 , 457279 , 802049 , 772535 , 475365 , 459488 , 521002 , 647682 , 631037 , 611290 , 424116 , 456705 , 649587 , 742010 , 464953 , 527956 , 598839 , 485790 , 662395 , 455838 , 473737 , 523577 , 692130 , 433486 , 780191 , 761189 , 746510 , 620266 , 567453 , 558411 , 599345 , 453368 , 453324 , 443971 , 496526 , 605762 , 615829 , 461064 , 579714 , 567757 , 574016 , 624131 , 545586 , 557236 , 511920 , 721133 );
Copy
4
2.14 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
424116
433486
443971
445526
447785
453324
453368
455838
456705
457279
459488
459614
461064
462854
464953
473737
475365
485790
493513
496526
502642
511920
521002
522250
523577
527956
545586
555074
557236
558411
567453
567757
574016
579714
582889
598839
599345
605762
611290
615829
620266
624131
631037
647682
649587
662395
692130
721133
742010
745063
746510
758691
761189
765055
765752
772535
775241
780191
781397
787121
802049
809223
823303
]
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 (424116 , 433486 , 443971 , 445526 , 447785 , 453324 , 453368 , 455838 , 456705 , 457279 , 459488 , 459614 , 461064 , 462854 , 464953 , 473737 , 475365 , 485790 , 493513 , 496526 , 502642 , 511920 , 521002 , 522250 , 523577 , 527956 , 545586 , 555074 , 557236 , 558411 , 567453 , 567757 , 574016 , 579714 , 582889 , 598839 , 599345 , 605762 , 611290 , 615829 , 620266 , 624131 , 631037 , 647682 , 649587 , 662395 , 692130 , 721133 , 742010 , 745063 , 746510 , 758691 , 761189 , 765055 , 765752 , 772535 , 775241 , 780191 , 781397 , 787121 , 802049 , 809223 , 823303 );
Copy
5
138.78 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
424116
433486
443971
445526
447785
453324
453368
455838
456705
457279
459488
459614
461064
462854
464953
473737
475365
485790
493513
496526
502642
511920
521002
522250
523577
527956
545586
555074
557236
558411
567453
567757
574016
579714
582889
598839
599345
605762
611290
615829
620266
624131
631037
647682
649587
662395
692130
721133
742010
745063
746510
758691
761189
765055
765752
772535
775241
780191
781397
787121
802049
809223
823303
]
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 (424116 , 433486 , 443971 , 445526 , 447785 , 453324 , 453368 , 455838 , 456705 , 457279 , 459488 , 459614 , 461064 , 462854 , 464953 , 473737 , 475365 , 485790 , 493513 , 496526 , 502642 , 511920 , 521002 , 522250 , 523577 , 527956 , 545586 , 555074 , 557236 , 558411 , 567453 , 567757 , 574016 , 579714 , 582889 , 598839 , 599345 , 605762 , 611290 , 615829 , 620266 , 624131 , 631037 , 647682 , 649587 , 662395 , 692130 , 721133 , 742010 , 745063 , 746510 , 758691 , 761189 , 765055 , 765752 , 772535 , 775241 , 780191 , 781397 , 787121 , 802049 , 809223 , 823303 );
Copy