Skip to content
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

Connecting to all Databases of the same instance of Redis OM connection #428

Open
MahmoudEssamR opened this issue Jan 7, 2024 · 3 comments

Comments

@MahmoudEssamR
Copy link

Why I can not connect to all Databases of the same instance of Redis OM connection and just only the database with index zero, and if it is possible another way how can I implement it?

@slorello89
Copy link
Member

Search and Query only work on db0. Using other numbered databases in Redis is considered an anti-pattern, hence the restriction.

@MahmoudEssamR
Copy link
Author

I have multiple instances of the same application each instance dedicated to a different client, what's your recommendation regarding the Redis connection? Should I create a different Redis server for each client or make them connect to the same Redis Server?
and if I should make them connect to the same Redis Server, Is there a way to make the filtration in the Redis server not in the memory ?

@slorello89
Copy link
Member

ATM you'd need to do one of two things.

  1. Use 1 Redis Server per- application
  2. Add a tag field to filter on in your queries.

I've had multiple requests for allowing dynamic prefix generation see #242 which would solve this without having to resort to the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants