Andy Carter
05/03/2024, 10:13 AMget_records
is there any preference to yield individual records using yield from
or just return
an iterable of them? And does that answer change if I am using parent-child streams at all?Sekhar Baggaraju
05/03/2024, 12:00 PMdef get_records(self, context: dict | None) -> Iterable[dict[str, Any]]:
context = context or {}
records = self.request_records(context=context)
for rec in records:
self.post_process(rec)
yield rec
Thanks