-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Relational split query mode for collection includes #20892
Comments
…n separate command for relational Resolves #20892
…n separate command for relational Resolves #20892
…n separate command for relational Resolves #20892
…n separate command for relational Resolves #20892
…n separate command for relational Resolves #20892
…n separate command for relational Resolves #20892
…n separate command for relational Resolves #20892
Pending items
|
Filed #21276 for filtered include since it won't be in preview6. |
In EF Core preview6, we are introducing a new API which is available for relational providers - Case 1: Includes: SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region]
FROM [Customers] AS [c]
ORDER BY [c].[CustomerID]
SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID]
FROM [Customers] AS [c]
INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]
ORDER BY [c].[CustomerID]
Case 2: Collection projection:
Differences from EFCore 2.x
|
Design meeting decisions from first iteration of split queries
context.Customers.Include(c => c.Orders)
Each DbCommand's DbReader will be buffered in BufferedDataReader, since we need data from all DbReaders to generate first result.EF Core will open multiple datareaders one for each query.For Async queries we will reader from DataReader async way into BufferedDataReaderFrom BufferedDataReader we will always read sync way to materialize resultAsSplitQuery
which will mark the query to use split query methods.Once above is released in preview, we will look for feedback on what to expand further.
Actual work item for #18022. Please use #18022 for discussions or any feedback.
The text was updated successfully, but these errors were encountered: