Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made as_values method from TableBase an interator #432

Merged
merged 1 commit into from
Apr 10, 2017

Conversation

pziarsolo
Copy link

Previous as_values() method from TableBase returned a 2d array. I have queries with more than 500.000 items and it consumes too much memory for me. The new implementation is based in yours but it returns an iterator of rows intead of a 2d array.
I think this is more versatile as you can create the previous 2d array just using list()

Tests are changed to fit with the new implementation.

@jieter
Copy link
Owner

jieter commented Apr 10, 2017

Great change, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants