Jaymon / prom

A PostgreSQL or SQLite orm for Python
MIT License
22 stars 4 forks source link

Cursor tuning to make sure it returns results #161

Closed Jaymon closed 1 year ago

Jaymon commented 1 year ago

SQLite has an arraysize that returns the next set of rows when iterating through a cursor, by default this is 1, but I'm wondering when doing Query.all() if we should set this value to like 500. I'd need to look into how Postgres handles this.

Jaymon commented 1 year ago

https://stackoverflow.com/a/125140/5006 - You need to set the arraysize attribute before calling execute