New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remaining FT.* commands - set FIRST_KEY_INDEX to 1 #2444
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, I need to make sure about some commands (see review comments)
fbdb5d1
to
76f7e1b
Compare
76f7e1b
to
da7233a
Compare
@@ -1,3 +1,5 @@ | |||
export const FIRST_KEY_INDEX = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually 2
is incorrect as well, this should be executed on all shards (same for all alias commands)
@@ -1,5 +1,7 @@ | |||
import { RediSearchSchema, pushSchema } from '.'; | |||
|
|||
export const FIRST_KEY_INDEX = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RediSearch indexes should be created on all nodes (this should be removed)
@carlhopf I guess you close it by mistake? If you don't have the time to make the changes I can do them.. :) |
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## master #2444 +/- ##
==========================================
+ Coverage 95.60% 95.61% +0.01%
==========================================
Files 455 455
Lines 4548 4563 +15
Branches 520 520
==========================================
+ Hits 4348 4363 +15
Misses 129 129
Partials 71 71
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
the disadvantage i see with creating all indexes (high number) on all cluster nodes, would be that it will not scale horizontally when increasing cluster size. the base index memory (even if contains no data) would always be occupied on all nodes? my original reason to shard but if i understand correctly, this is done automatically under the hood by using RediSearch+coordinator https://redis.io/docs/stack/search/design/overview/#scalable-distributed-search hence it might not be useful to set |
Description
remaining FT.* commands also select the cluster node based on FIRST_KEY_INDEX
Checklist
npm test
pass with this change (including linting)?