Skip to content

Conversation

@estolfo
Copy link
Contributor

@estolfo estolfo commented Aug 9, 2018

This pull request intends to address the performance issues caused by request responses being wrapped in a HashWrapper.
The associated issue and pull request are:

The changes in this pull request, provide a #raw_response method on the response, if users want to avoid creating a HashWrapper for the response results. It also only creates the HashWrapper when the response is accessed, not upon instantiation of the Repository::Response::Results object.

@estolfo estolfo mentioned this pull request Aug 9, 2018
@estolfo estolfo changed the title Hashie perf [STORE] [MODEL] Address performance of HashWrapper in Response objects Aug 9, 2018
@estolfo estolfo force-pushed the hashie-perf branch 2 times, most recently from 7aaec34 to 8f76954 Compare August 13, 2018 12:58
@estolfo estolfo merged commit c22dae8 into elastic:6.x Sep 5, 2018
estolfo added a commit that referenced this pull request Sep 5, 2018
#825)

* [STORE] Lazily wrap response in HashWrapper and provide #raw_response access

* [MODEL] Lazily wrap response in HashWrapper and provide #raw_response access

* [MODEL] Opimitize response changes

* [STORE] Opimitize response changes
benjaminbarbe pushed a commit to beingenious/elasticsearch-rails that referenced this pull request May 22, 2019
elastic#825)

* [STORE] Lazily wrap response in HashWrapper and provide #raw_response access

* [MODEL] Lazily wrap response in HashWrapper and provide #raw_response access

* [MODEL] Opimitize response changes

* [STORE] Opimitize response changes

# Conflicts:
#	elasticsearch-persistence/lib/elasticsearch/persistence/repository/response/results.rb
#	elasticsearch-persistence/spec/repository/response/results_spec.rb
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