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

Adapter#get_all #255

Merged
merged 13 commits into from
May 10, 2017
Merged

Adapter#get_all #255

merged 13 commits into from
May 10, 2017

Conversation

jnunemaker
Copy link
Collaborator

Previously preload_all made to adapter calls -- features and get_multi with result of features. This makes it so an adapter can get all features and gate values in one call instead of two by adding Adapter#get_all. The default implementation is a call to features and then to get_multi like before, but now it is possible for adapters to be more efficient and do it all in one call. I added it to Http adapter as an example. I'll open an issue to add it to other adapters.

@jnunemaker jnunemaker self-assigned this May 10, 2017
@jnunemaker jnunemaker merged commit c2b7a7e into master May 10, 2017
@jnunemaker jnunemaker deleted the adapter-preload branch May 10, 2017 13:22
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

Successfully merging this pull request may close these issues.

1 participant