Data
news

64stories

Stories

EF CORE 11
Split queries
MJMilan Jovanović milan@milanjovanovic.tech (Milan Jovanović) Nov 14

EF 11 Drops a Redundant Join From Split Queries

EF 11 no longer joins reference navigations in the collection statements of a split query and drops their keys from ORDER BY, so the SQL is shorter without any code change. On PostgreSQL the author measured 7-11% faster queries with one reference and 21-24% with four.

MongoDB
Data access

MongoDB Reads in C#: Projection, Sorting, and Pagination

A correct filter is not enough: a MongoDB read can still return unnecessary fields, an undefined order or an unbounded amount of data. Nick Cosentino walks through typed projection, sorting with a unique tie-breaker, offset pagination and compound continuation tokens on MongoDB.Driver 3.12.0. The guide skips basic filter syntax and answers the follow-up questions instead: what comes back, in which order, and how a later request continues.

Data
Data
HBHabr C# (ru) gandjustas Nov 6

A modular data model in EF Core: one DbContext from many modules

Instead of giving each module its own database or DbContext, a modular monolith can assemble one EF Core model from every module's IEntityTypeConfiguration classes. The author compares four data layouts on .NET 10 and shows that only the single-model option keeps SQL JOINs and one SaveChanges across modules. In his benchmark the database-side join served 12% more requests than the HTTP-based one.

EF Core 11
Team-friendly migrations

EF Core 11: migrations get friendlier for teams

EF Core 11 brings a set of small changes that remove daily friction from migrations work. You can keep a relationship in the model without a foreign key constraint in the database, the model snapshot now surfaces diverged migrations at merge time, a single command can scaffold and apply a migration, and dotnet ef gets a configuration file. Any .NET team working on a shared codebase will feel the difference.

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message