Adam Roderick12/07/2022, 5:08 PM
, but it appears to load the entire resultset into memory before enumerating the rows. The better practice is to use
for doc in query:
However, this hangs immediately when run from within a task. Has anyone else seen this behavior? Any idea why it might be behaving this way?
doc = query.fetchone() while doc: doc = query.fetchone()
Dylan12/12/2022, 4:47 PM
Adam Roderick12/12/2022, 4:48 PM
Dylan12/12/2022, 4:53 PM