Hjelle.Dev

Plan, Automate, Review, Repeat

Plan, Automate, Review, Repeat

06 July 2025
A practical guide to building a solid website maintenance plan — combining automation, manual reviews, and smart tooling to stay secure, up-to-date, and efficient.
Entity framework gotcha you didn’t know about

Entity framework gotcha you didn’t know about

09 May 2025
Performance issue encountered with Entity Framework Core where a query using FirstOrDefaultAsync and multiple Include statements was unexpectedly slow. By simply moving the filter condition .Where(d => d.Id == doc.Id) earlier in the query chain, EF generated a much more efficient SQL plan, reducing execution time from 20 seconds to milliseconds. The key lesson is that EF sometimes needs a bit of guidance to optimize queries effectively.
Performance boosting with SemaphoreSlim

Performance boosting with SemaphoreSlim

09 May 2025
Effective performance tuning starts by using analytics and profiling tools such as Azure Application Insights or dotTrace to identify your slowest endpoints, then introducing controlled parallelism with SemaphoreSlim to accelerate CPU- or I/O-bound work. By carefully adjusting the number of concurrent operations and validating under realistic, production-like load—rather than just in development—you avoid resource exhaustion or database overload and ensure a fast, reliable user experience.
Compare database schemas with ease

Compare database schemas with ease

16 March 2025
How to use RedGate SQL Compare to create upgrade scripts for databases
Useful Tips for Traveling with Electronics

Useful Tips for Traveling with Electronics

13 February 2025
Before traveling, secure your devices by using strong passwords, backing up data, and checking if you need adapters for power and plugs. While traveling, avoid public WiFi, use a VPN, keep devices with you, and be cautious of unknown USBs and Bluetooth connections.
Caching in Azure DevOps pipeline

Caching in Azure DevOps pipeline

06 February 2025
Using caching in Azure DevOps pipelines can drastically reduce build times.I cut build time from 7-8 minutes to 2-3 minutes by implementing caching.
© Andreas Skeie Hjelle 2025