EngineeringSenior DeveloperTechnical Sessions

Session 25: SQL Server Internals, EF Core & Raw SQL

Premium

Bài viết này đi sâu vào kiến trúc bên dưới của SQL Server và cách tương tác hiệu quả với Database thông qua 2 trường phái: Entity Framework Core (LINQ) và Raw SQL (Stored Procedures/Dapper).


1️⃣ SQL Server Storage Engine Internals

Mọi dữ liệu bạn lưu trữ đều được chia thành các Page và Extent.

  • Page (8KB): Đơn vị lưu trữ nhỏ nhất. Mỗi Page chứa header, data rows và row offset array.
  • Extent (64KB): Gồm 8 liên tiếp Pages. Khi bảng cần thêm data, SQL Server cấp phát theo Extent.
Premium

Continue with premium access

Session 25: SQL Server Internals, EF Core & Raw SQL is part of the premium library. Sign in with a premium account to unlock the full lesson and the rest of this track.

01 Full premium lesson access
02 Deeper implementation notes
03 Ongoing content updates