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

Fix Nebulex.Adapters.Multilevel.get_all/3 to call the same invoked function into the underlying levels #139

Closed
cabol opened this issue Oct 24, 2021 · 0 comments

Comments

@cabol
Copy link
Owner

cabol commented Oct 24, 2021

Currently, when calling Nebulex.Adapters.Multilevel.get_all/3, it is translated into multiple get/3 operations underneath, instead of calling the same invoked function for all the levels. This causes a significant performance penalty, avoiding the underlying levels to resolve the get_all themselves.

For example, the Redis adapter is able to run the get_all in a single command because it supports the MGET operation, but when using the multi-level adapter it is not being called since the adapter converts the get_all into multiple gets before calling the underlying adapters.

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

No branches or pull requests

1 participant