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

Fixed #29563 -- Added result streaming for QuerySet.iterator() on SQLite. #10203

Merged
merged 2 commits into from Jul 25, 2018

Conversation

brownan
Copy link
Contributor

@brownan brownan commented Jul 20, 2018

Fixed a bug that enabled Queryset.iterator() in SQLite in contrary to
the documentation. Updated the documentation and enabled the
can_use_chunked_reads flag in SQLite.

https://code.djangoproject.com/ticket/29563

I have yet to incorporate the latest feedback from the ticket comments, but I'm opening this now to get the CI tests.

@brownan
Copy link
Contributor Author

brownan commented Jul 20, 2018

Split the request into two commits as per the feedback: one fixes the logic bug in execute_sql(), the second enables the can_use_chunked_reads flag for SQLite.

@timgraham
Copy link
Member

I think the test in the first commit should mock can_use_chunked_reads to False rather than rely on skipping, otherwise the test won't run for any of the builtin database engines.

The second commit should have a docs/releases/2.2.txt note as well as a .. versionchanged:: 2.2 annotation.

@brownan
Copy link
Contributor Author

brownan commented Jul 21, 2018

Good idea, I've updated the test.

I added a bullet to the 2.2 release notes and the annotation as well. Let me know if it should go into more detail. I kept it brief.

@timgraham timgraham changed the title Fixed #29563 -- SQLite support for chunked reads Fixed #29563 -- Added result streaming for QuerySet.iterator() on SQLite. Jul 25, 2018
@timgraham timgraham merged commit c0e3c65 into django:master Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants