Common mistakes in EF Core - Jernej Kavka - NDC London 2024

  Рет қаралды 4,612

NDC Conferences

NDC Conferences

14 күн бұрын

This talk was recorded at NDC London in London, England. #ndclondon #ndcconferences #developer #softwaredeveloper
Attend the next NDC conference near you:
ndcconferences.com
ndclondon.com/
Subscribe to our KZbin channel and learn every day:
/ @NDC
Follow our Social Media!
/ ndcconferences
/ ndc_conferences
/ ndc_conferences
#dotnet #sql #apps
When JK worked with many different clients and projects, he frequently heard "EF Core is slow" or "We should do this in raw SQL" only to realize they haven't used EF Core correctly.
JK will show you how to improve your EF Core statements as well as how various configurations impacts the performance and scalability of your application. You'll be blown away at how small changes can significantly impact not only the performance but also stability of the application.

Пікірлер: 11
@HaoNguyen-km9xj
@HaoNguyen-km9xj 12 күн бұрын
That's really nice and useful knowledge. Thank you for sharing!
@MIS2000Lab
@MIS2000Lab 12 күн бұрын
Thanks your kindly sharing, It's very useful. Thanks again.
@dy0mber847
@dy0mber847 12 күн бұрын
This presentation is gold! Thanks
@dkazbek
@dkazbek 12 күн бұрын
On 41:45 he call SaveChanges but ExecuteUpdate and ExecuteDelete execute directly on database when called. SaveChanges doesn't affect them. Just for information.
@margosdesarian
@margosdesarian 9 күн бұрын
What a super video!!!!
@leakyabstraction
@leakyabstraction 12 күн бұрын
Nice. Thank you, I had no idea about the ExecuteUpdate and ExecuteDelete methods (I skipped a few versions of EF Core)
@TappinMyFoot
@TappinMyFoot 12 күн бұрын
Great tips. I've been guilty of some of these, but the people I've helped onboard for EF seem to do most of theese. For pagination, it seems like it would be a good idea to have the IQueryable include a sort clause. It's always possible with pagination that your next set will have new or deleted records between pages, causing you to have dupes or skipped records between loaded pages. But without a sort order, you don't even know that SQL's optimized you might even have SQL's optimizer choose to use different optimization plans between executions, meaning the 2nd page you load wouldn't be close to the "next page", since it may be the next X records using a different sort. For a single table, it's probably usually going to be the same optimization plan if the where clause doesn't change. But if there are joins involved, stats could change, and you could get totally different ordered results between executions. Beyond that, paged result sets don't make a lot of sense to the user unless the pages have some kind of order, so they have a sense whether they should be looking near page 1-5 of 100 for or pages 50ish of 100 for something in the middle of the sort.
@djchrisi
@djchrisi 11 күн бұрын
I'm really not into EF Core. I have always the feeling I'm battling the framework. This talk only strengthens my opinion. With Dapper I always have the feeling to work together with the database. I know exactly what is going on and why. With EF not so much.
@md.redwanhossain6288
@md.redwanhossain6288 10 күн бұрын
Why do you want to work with Database when writing OOP code? Relational approach and OOP approach are different. Thats why you need an ORM which lets you speak in OOP where the DB is abstracted out.
@djchrisi
@djchrisi 10 күн бұрын
​@@md.redwanhossain6288 People might argue about it, but I don't think that the 'O' in ORM means the same as the 'O' in OOP. OOP is just so much more than just objects. It's about inheritance, encapsulation, polymorphism, etc. The 'O' in ORM means more data and records to me. You can, of course, abstract the database away - no problem about it. But I personally do not feel good about it, and I like to know exactly what is going on. Even if it means that I need to use a DSL (in this case, SQL). It also means to probably move slower, and if all goes well, EF is indeed a fast and efficient tool. You can focus on other things than the DB. However, if things do not go smoothly, then I do not think EF is doing a good job to help me figure out what is wrong.
@shaddadfalcon
@shaddadfalcon 7 күн бұрын
Not having to work with DB is the whole idea of ORM :). EF Core is powerful tool and with great power comes great responsibility and that lies completely on developers to know the tools they are using.
Learn SQL Basics in Just 15 Minutes!
16:57
Kenji Explains
Рет қаралды 91 М.
Why? 😭 #shorts by Leisi Crazy
00:16
Leisi Crazy
Рет қаралды 35 МЛН
How To Choose Ramen Date Night 🍜
00:58
Jojo Sim
Рет қаралды 61 МЛН
"Stop Using Async Await in .NET to Save Threads" | Code Cop #018
14:05
Stop Calling Your API a "REST API"
17:42
Amichai Mantinband
Рет қаралды 12 М.
MS-DOS has been Open-Sourced!  We Build and Run it!
15:01
Dave's Garage
Рет қаралды 330 М.
Drizzle ORM in 100 Seconds
2:54
Fireship
Рет қаралды 431 М.
Swagger is Going Away in .NET 9!
10:48
Nick Chapsas
Рет қаралды 69 М.
7 Database Paradigms
9:53
Fireship
Рет қаралды 1,5 МЛН
Common mistakes in EF Core - Jernej Kavka - NDC Oslo 2023
1:03:43
NDC Conferences
Рет қаралды 24 М.
Добавления ключа в домофон ДомРу
0:18
😱НОУТБУК СОСЕДКИ😱
0:30
OMG DEN
Рет қаралды 1,7 МЛН
Приехала Большая Коробка от Anker! А Внутри...
20:09
РасПаковка ДваПаковка
Рет қаралды 79 М.