Problem with testing bulk inserts with Task.async_stream

Ah, it wasn’t obvious from your first snippet that you also read from the database, in that case, yes, the concurrent version can be more efficient.