Eager loading seems to not work with recursive CTEs?
See original GitHub issueIs it possible to use .Include
/.ThenInclude
, aka eager loading, for recursive CTEs? It seems that applying them on the query does absolutely nothing. Is it intended?
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How to do recursive load with Entity framework?
Answer: Unless you are using specific hierarchy features of your database server (which are not SQL standard, but supported by some servers, ...
Read more >Why doesn't this recursive CTE with a parameter use an ...
SQL Server rewrites tail-recursive common table expressions (CTEs) as iteration. Everything from the Lazy Index Spool down is the runtime ...
Read more >Why is my CTE so slow?
This is referred to as a recursive common table expression. ... Maybe you have written or debugged a CTE that seems to run...
Read more >Work with recursive CTEs | BigQuery
A non-recursive CTE can reference only preceding CTEs and can't reference itself. Recursive CTEs run continuously until no new results are found, while...
Read more >WITH common_table_expression (Transact-SQL)
The following guidelines apply to defining a recursive common table expression: The recursive CTE definition must contain at least two CTE query ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Why not 😉 If you start thinking from SQL query but not from object collections perspective - it is natural way. And surprise, you will get almost the same SQL as a LINQ query.
I have corrected your query and it should work. Currently recursive CTE cannot return whole object but only projection.