Skip to content

Added draft DEP for ORM support for Common Table Expressions (CTE)#106

Open
Genarito wants to merge 3 commits into
django:mainfrom
Genarito:orm-common-table-expressions
Open

Added draft DEP for ORM support for Common Table Expressions (CTE)#106
Genarito wants to merge 3 commits into
django:mainfrom
Genarito:orm-common-table-expressions

Conversation

@Genarito
Copy link
Copy Markdown

@Genarito Genarito commented Mar 1, 2026

Hi!

Here is a DEP describing the proposed integration of Common Table Expressions support into the Django ORM core. This document was requested by @nessita in Django issue #20713.
I would be happy to receive any feedback you may have.

Best regards!
Genaro

show performance improvements for complex query shapes, especially where
correlated aggregate subqueries or deeply reused annotations are involved.

The proposal is designed for interoperability with current ``django-cte``
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think adding a reference to https://dimagi.github.io/django-cte/ might be helpful here.

Copy link
Copy Markdown
Author

@Genarito Genarito Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! Since there is no quick reference to the repository in the documentation, I added both links

@Genarito
Copy link
Copy Markdown
Author

Genarito commented May 4, 2026

Hi @shaib ! How are you? Any update on this?
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