Skip to content

Commit bb87b21

Browse files
committed
Add some perf info to 11 what's new docs (#5326)
1 parent 983b462 commit bb87b21

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
@@ -160,7 +160,9 @@ In EF Core 11, the redundant column is omitted:
160160
ORDER BY [b].[BlogId]
161161
```
162162

163-
Both optimizations can have a significant positive impact on query performance, especially when multiple reference navigations are included.
163+
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 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**.
164+
165+
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.
164166

165167
<a name="linq-maxby-minby"></a>
166168

@@ -265,6 +267,8 @@ var embeddings = await context.Blogs
265267

266268
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.
267269

270+
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.
271+
268272
<a name="sqlserver-full-text"></a>
269273

270274
### Full-text search improvements

0 commit comments

Comments
 (0)