feat: redis supports multiple DocumentArrays#540
Conversation
Codecov Report
@@ Coverage Diff @@
## main #540 +/- ##
==========================================
- Coverage 86.41% 84.04% -2.38%
==========================================
Files 142 142
Lines 7141 7139 -2
==========================================
- Hits 6171 6000 -171
- Misses 970 1139 +169
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
| host: str = field(default='localhost') | ||
| port: int = field(default=6379) | ||
| index_name: str = field(default='idx') | ||
| flush: bool = field(default=False) |
There was a problem hiding this comment.
make sure this is not a breaking change
bwanglzu
left a comment
There was a problem hiding this comment.
havn't start review, but please take a look of the question
|
|
||
| if config.index_name is None: | ||
| id = uuid.uuid4().hex | ||
| config.index_name = 'index_name__' + id |
There was a problem hiding this comment.
can we create a CONSTENT rather than hard code a string?
| id = uuid.uuid4().hex | ||
| config.index_name = 'index_name__' + id | ||
|
|
||
| self._offset2id_key = config.index_name + '__offset2id' |
bwanglzu
left a comment
There was a problem hiding this comment.
great work! left some comments in the PR
… into feat-redis-multidas
|
@JoanFM @alaeddine-13 please review again |
|
@alaeddine-13 why u think tests are failing? |
|
@JoanFM @alaeddine-13 can you review again? |
| self._client.delete(*keys) | ||
| if cursor == 0: | ||
| break | ||
| pipe = self._client.pipeline() |
There was a problem hiding this comment.
is this pipeline object not a context manager?
I'm inspecting push/pull failure but still no idea about failure in prepare environment |
alaeddine-13
left a comment
There was a problem hiding this comment.
LGTM, let's try to pass CI
|
Hey @AnneYang720 , can u try rebasing your code against master? I am not sure why the tests fail. But another PR has them passing #548 |
actually this PR is already up-to-date |
9de62bd to
b2ca490
Compare
Okay now I get why it was not passing. The github secret is not set on external contributor CI. |
Goals:
This PR will add support for storing multiple DocumentArrays in the one Redis server instance according to #507