Urgent.News

What's breaking now, across thousands of outlets.

Tech

The Real Cost of Returning the Identity Value in EF Core

When you insert thousands of rows into SQL Server with Entity Framework Core, performance drops quickly. Most developers blame change tracking. But there is another hidden cost that slows down every SaveChanges call: returning database-generated identity values back to your entities. If your table has an auto-increment primary key (like most SQL Server tables), EF Core must ask the database for…

Many developers blame change tracking when they notice performance issues when inserting thousands of rows using Entity Framework Core. However, there is another hidden cost that can significantly slow down every SaveChanges call, and it is returning database-generated identity values back to your entities. In SQL Server, if you have an auto-increment primary key, EF Core needs to make a round-trip to the database to retrieve each generated identity after the insert.

This extra SQL logic and round-trip limit the batch size, forcing additional overhead, and is the primary reason SaveChanges struggles when handling large batches of data.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Decoding iPhone HEIC images in the browser with WebAssembly (no server, no uploads)

Every "free HEIC converter" website I found had the same privacy model: upload your photos to my server, wait, download the result. Family photos. Screenshots. Whatever was in your camera roll.

  • SnappyKit converts HEIC images to JPG, PNG, WebP, or AVIF in browser
  • libheif library integrated into WebAssembly for local decoding
  • WASM module lazy-loaded, memory freed explicitly to prevent leaks

I Tried to Teach a Computer "Apple" (It Thought It Was a Fruit, an iPhone, and a Vector)

Hello, DEV Community! 🙌 It’s my first time writing here. As I was studying how models handle text today, I ran into a funny realization: computers don't understand human words at all.

  • Computers understand language through numbers, not words
  • Word embedding represents words as points in a high-dimensional space
  • Mathematical operations on word vectors reveal semantic relationships

Curate Verifiable ActiveAdmin 4 Themes with Markdown and CI

When a Rails theme claims ActiveAdmin 4 support, the difficult part is often not finding a screenshot. It is checking whether the theme actually targets ActiveAdmin 4's Tailwind-based asset model…

  • Curated directory of ActiveAdmin 4 themes
  • Repository focuses on documentation and links
  • GitHub Actions ensures Markdown validity

More from Wednesday 30 September →