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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -