LinkedIn Benchmarks again
Another day, another dollar. LinkedIn has the tips for you! Performance, performance! Let's get right into it.
Hey, I'm Steven a .NET Developer in Switzerland. I am a Microsoft MVP. Also, this blog is open source on GitHub.
Another day, another dollar. LinkedIn has the tips for you! Performance, performance! Let's get right into it.
In Entity Framework Core ToDictionaryAsync
(and of course) also the the synchronous counter part ToDictionary
retrieve the whole object from the database.
For a lack of a better title, this blog post shows a database improvement that helped me quite a bit and what to do to make it work.
Did you ever wonder if there is a noticeable difference between:
List<int> a = [1, 2, 3];
// And
List<int> b = new() {1,2,3};
Let's find out:
The preview 6 of dotnet 10 brings two more functions: InfiniteSequence
and Sequence
.
Entity Frameworks SqlRaw
has a small, sometimes annoying limitation:
The SQL query must return data for all properties of the entity type.
Sometimes that isn't desireable, so let's overcome that super easy.
In this blog post we will have a look into how to disable the thread safety check in Entity Framework. What are the implications of doing so and how to do it.
Architectural Unit tests are nice to constraint your system (like which parts of your application can access other parts of your application). This blog post is not about that - that is covered a lot in the internet. No, I want to show what I did in a recent project: Checking if all controllers do use CancellationToken
and some other entities are sealed
.
Some while ago I was explaining what "Lowering" is. And the interesting part is that List
behaves differently like an array while also a List
is backed by an array. But why?
Last year I wrote an article about how ToListAsync
was slow in Entity Framework titled: "Be careful with ToListAsync and ToArrayAsync in Entity Framework Core". Things have evolved since then, so let's celebrate!