pyes
pyes copied to clipboard
Performance issues with pyes
When sequentially iterating over a result set, pyes will re-query elasticsearch for every single item in the result even when the results are already retrieved.
This is mainly to do with how the ResultSet class handle getitem. I believe the line: ("_source" in self._results['hits']['hits'][0] or "_fields" in self._results['hits']['hits'][0] is incorrect.
I'll check. Can you gist me the code you use to fire the issue?
I'll come up with a pull request for you.
https://github.com/aparo/pyes/pull/355