Adam Roderick
12/07/2022, 5:08 PMfor doc in query:
, but it appears to load the entire resultset into memory before enumerating the rows.
The better practice is to use
doc = query.fetchone()
while doc:
doc = query.fetchone()
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?Dylan
12/12/2022, 4:47 PMAdam Roderick
12/12/2022, 4:48 PMDylan
12/12/2022, 4:53 PM