Post on 05-Dec-2014
description
Performance Tuning an Object-Relational MapperKey concepts and approaches
ORMs are useful
Your messy code
My slick ORM
It’s not that easy
IMPACT
#ORMHate
Why care about how they work?
Why care about performance issues?
The main performance concerns
Too little Lazy. Too lazy.
Too long Elapsed time.
Too much Eager. Too eager.
Situations Grids
1. Profile Common Scenarios
Tools Profilers
Tracing (i.e. EFTracingProvider)
LinqPad
Log
Free Profilers Down to business
Premium Profilers See ORM contexts
Code that generates SQL easier to see
Bells & whistles (query plans, rows,
2. Optimize queries
3. Eager/lazy settings
4. And more