pyes icon indicating copy to clipboard operation
pyes copied to clipboard

Performance issues with pyes

Open vangheem opened this issue 12 years ago • 3 comments

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.

vangheem avatar Jan 15 '14 18:01 vangheem

I'll check. Can you gist me the code you use to fire the issue?

aparo avatar Jan 16 '14 09:01 aparo

I'll come up with a pull request for you.

vangheem avatar Jan 17 '14 16:01 vangheem

https://github.com/aparo/pyes/pull/355

vangheem avatar Jan 17 '14 16:01 vangheem