Skip to content

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

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