fhir-py icon indicating copy to clipboard operation
fhir-py copied to clipboard

Make fetch/fetch_all lazy

Open mkizesov opened this issue 6 years ago • 1 comments

Sometimes we need to iterate over thousands of entries and I think it will be very useful if we can have fetch_all() as a generator. Now if we call fetch_all for thousands of entries we firstly wait until all entries are fetched.

Consider implementing lazy fetch for searchset iterating.

mkizesov avatar Nov 28 '19 08:11 mkizesov

Done. But we need to add some tests.

mkizesov avatar Nov 28 '19 11:11 mkizesov