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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -