Skip to content

Commit 1845090

Browse files
committed
Add some perf info to 11 what's new docs
1 parent 90d95b7 commit 1845090

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • entity-framework/core/what-is-new/ef-core-11.0

entity-framework/core/what-is-new/ef-core-11.0/whatsnew.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ In EF Core 11, the redundant column is omitted:
154154
ORDER BY [b].[BlogId]
155155
```
156156

157-
Both optimizations can have a significant positive impact on query performance, especially when multiple reference navigations are included.
157+
Both optimizations can have a significant positive impact on query performance, especially when multiple reference navigations are included. A simple, common split query scenario showed a **29% improvement in querying performance**, as the database no longer has to perform the one-to-one JOIN; single queries are also significantly improved by the removal of the ORDER BY, even if a bit less: one scenario showed a **22% improvement**.
158+
159+
More details on the benchmark are available [here](https://github.com/dotnet/efcore/issues/29182#issuecomment-4231140289), and as always, actual performance in your application will vary based on your schema, data and a variety of other factors.
158160

159161
<a name="linq-maxby-minby"></a>
160162

@@ -259,6 +261,8 @@ var embeddings = await context.Blogs
259261

260262
Vector properties can still be used in `WHERE` and `ORDER BY` clauses—including with `VectorDistance()` and `VectorSearch()`—and EF will correctly include them in the SQL, just not in the entity projection.
261263

264+
This optimization can have a dramatic impact on application speed: a minimal benchmark showed an almost 9x (that's nine-fold) increase in performance, and that's while running against a local database. The optimization is even more impactful as latency to the database grows: when executing against a remote Azure SQL database, an improvement of around 22x was observed. More details on the benchmark are available [here](https://github.com/dotnet/efcore/issues/37279#issuecomment-4232243062), and as always, actual performance in your application will vary based on your entity, vector properties and latency.
265+
262266
<a name="sqlserver-full-text"></a>
263267

264268
### Full-text search improvements

0 commit comments

Comments
 (0)