Episode 435: Julie Lerman on Object Relational Mappers and Entity Framework

Topics covered
Popular Clips
Episode Highlights
Optimization
Optimizing performance in applications using ORMs like Entity Framework involves strategic decisions. highlights the use of lighter ORMs such as Dapper, which allows developers to write their own SQL for better control and performance 1. She suggests a CQRS pattern to separate commands and queries, using Entity Framework for writing and Dapper for reading 1. Stored procedures can drastically reduce execution time, as illustrated by a case where a procedure cut down execution from two minutes to nine milliseconds 2.
Just write a stored procedure. Do not, you know, like, you can't, it's too late to change this model because everything's dependent on it. So just write a stored procedure.
---
This approach allows developers to leverage the simplicity of Entity Framework while optimizing performance-critical queries.
SQL vs ORMs
The trade-offs between using SQL directly and relying on ORMs are significant for developers. emphasizes the importance of understanding the SQL generated by ORMs and profiling to identify performance bottlenecks 3. She notes that while ORMs simplify mapping between relational databases and application objects, they do not eliminate the need for database expertise 3. The choice between SQL and ORMs often depends on the application's requirements and the team's expertise.
It enables many developers to write pretty decent SQL. How's that? How's that, my DBA friends?
---
Ultimately, the decision involves balancing ease of use with performance and control.
Related Episodes


Episode 435: Julie Lerman on Object Relational Mappers and Entity Framework
Answers 383 questions

Episode 121: OR Mappers with Michael Plöd
Answers 383 questions

Episode 117: Bran Selic on UML
Answers 383 questions

Episode 137: SQL with Jim Melton
Answers 383 questions

Episode 67: Roundtable on MDSD and PLE
Answers 383 questions

Episode 189: Eric Lubow on Polyglot Persistence
Answers 383 questions

Episode 120: OCL with Anneke Kleppe
Answers 383 questions

Episode 14: Interview Ted Neward
Answers 383 questions

Episode-226-Eric-Evans-on-Domain-Driven-Design-at-10-Years
Answers 383 questions

Episode 97: Interview Anders Hejlsberg
Answers 383 questions

SE-Radio-Episode-267-Jürgen-Höller-on-Reactive-Spring-and-Spring-5.0
Answers 383 questions

Episode 107: Andrew Watson on the OMG
Answers 383 questions

Episode 5: Model-Driven Software Development Pt. 1
Answers 383 questions

Episode 82: Organization of Large Code Bases with Juergen Hoeller
Answers 383 questions

Episode 194: Michael Hunger on Graph Databases
Answers 383 questions














