python - sqlalchemy yield_per() batch -
i'm trying 10000 records @ time using yield_per(). gives me records of query 1 one in stream, using cursor of length 10000. there way lists (of size 10000) of records instead of getting 1 one?
for record in connection.query(my_query).yield_per(10000): foo(position)
Comments
Post a Comment