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

Workaround QuerySet.iterator() not handling large datasets #267

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

mkanerva
Copy link

QuerySet.iterator() is currently broken for large datasets. This is a crude workaround for anyone running into the same issue.

@mShan0
Copy link
Contributor

mShan0 commented May 11, 2023

Hi @mkanerva, thanks for the PR. Is this a bug with our driver or Django in general?

@mkanerva
Copy link
Author

Issue is specific to MSSQL

@federicoemartinez
Copy link
Contributor

I tried this, and it failed in some queries.
I got:
django.db.utils.ProgrammingError: ('42000', '[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Column "TABLE.ID" is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause. (8127) (SQLExecDirectW)')

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.

3 participants