NOTES & ARTICLES
My personal notes on the challenges encountered while building a system from scratch, the solutions I found, and a bit of the philosophy behind it all. A mix of the technical and the theoretical.


Native AOT Warnings: How to Fix IL2026, IL3050, IL2057 and IL2075
What do the IL2026, IL3050, IL2057 and IL2075 warnings mean in Native AOT? I compiled and ran each one and show the failure and the fix with real output.
.NET
EF Core Compiled Queries: Do They Really Make It Faster?
How much faster does EF.CompileAsyncQuery make queries? I measured it with BenchmarkDotNet on PostgreSQL and SQLite: 3% to 26%, depending on the database.
.NET, EF Core
The EF Core N+1 Problem: How to Spot It and Fix It
What is the N+1 problem in EF Core and how do you catch it in the logs? I measured lazy loading, Include, AsSplitQuery and Select: 147 queries became 1.
.NET, EF Core
Safely Applying EF Core Migrations in Production
How should EF Core migrations reach production? I compared Migrate(), idempotent SQL scripts and migration bundles, plus data loss and rollback pitfalls.
.NET, EF Core
JIT vs AOT: Compiling a C# Project with Native AOT
What is the difference between JIT, ReadyToRun and Native AOT? A measured comparison, compiling a C# project with Native AOT step by step, and why AOT warnings matter.
.NET
ReadyToRun and Cold Starts: Why Is the First Request After a Deploy Slow?
Why is the first request after a deploy slow? The cost of the JIT, how to turn on ReadyToRun and what it gains in measurements: a 42% faster first response in an MVC app.
.NET, Docker
Tag-Based Cache Eviction with ASP.NET Core Output Cache
Don't clear the whole cache on every save: evict only the pages that changed with ASP.NET Core Output Cache tags, and warm the cache before visitors arrive.
.NET