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

Read/Write split #42

Open
dimitarq opened this issue Oct 17, 2024 · 1 comment
Open

Read/Write split #42

dimitarq opened this issue Oct 17, 2024 · 1 comment

Comments

@dimitarq
Copy link

There are some use cases where the redis endpoint has read and write endpoints. It will be beneficial to support different endpoints for read queries and write queries. I have looked through the code and it looks like that AbstractModel can be patched so get_store() returns different model based on the query type. Do you consider this as something that can be achieved by the library ?

@Tinitto
Copy link
Contributor

Tinitto commented Oct 17, 2024

Thanks @dimitarq for your interest to contribute. From the sounds of it, such a feature seems beyond the simplistic scope of this library.

However, if it can be pulled off by inheritance from AbstractStore, AsyncStore, Model or/and AbstractModel etc., you could share it here as a recipe for other users who might have similar use cases.

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