Improve management of iterator returned by collect
(database table is locked
error)
#377
Labels
enhancement
New feature or request
Action Items
Description
Related to iterative/datachain-examples#15
Simple way to reproduce:
Causes something like (when you run it within a test suite at least, since it is causing DB cleanup, but the same can be imitated by let's say making the second part a bit more complicated - with UDF):
It's caused (I think) by us using:
It is an open connection / cursor staying underneath. It affects probably also other DataChains since we are reusing the same DB.
Workaround
Obvious workaround - use
limit
(+offset
if needed) to make sure that it's a single (or whatever number of elements is needed) and / orlist(...)
or iterate through them.The text was updated successfully, but these errors were encountered: