Click here to Skip to main content
15,884,838 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPower BI Embedded : Cant doCross Filtering selecting multiple rows on a table visual pressing CTRL Pin
Member 155547063-Mar-22 17:21
Member 155547063-Mar-22 17:21 
Rant[REPOST] Power BI Embedded : Cant doCross Filtering selecting multiple rows on a table visual pressing CTRL Pin
Richard Deeming3-Mar-22 21:30
mveRichard Deeming3-Mar-22 21:30 
AnswerRe: Power BI Embedded : Cant doCross Filtering selecting multiple rows on a table visual pressing CTRL Pin
RedDk4-Mar-22 7:01
RedDk4-Mar-22 7:01 
QuestionASP .Net Core, Global HTML sanitization. Pin
GKP199228-Feb-22 17:46
professionalGKP199228-Feb-22 17:46 
AnswerRe: ASP .Net Core, Global HTML sanitization. Pin
Richard Deeming28-Feb-22 21:50
mveRichard Deeming28-Feb-22 21:50 
GeneralRe: ASP .Net Core, Global HTML sanitization. Pin
GKP199228-Feb-22 23:44
professionalGKP199228-Feb-22 23:44 
QuestionASP.NetCore Freeze the header of html table Pin
pkfox22-Feb-22 21:29
professionalpkfox22-Feb-22 21:29 
AnswerRe: ASP.NetCore Freeze the header of html table Pin
Richard Deeming24-Feb-22 0:32
mveRichard Deeming24-Feb-22 0:32 
GeneralRe: ASP.NetCore Freeze the header of html table Pin
pkfox24-Feb-22 2:09
professionalpkfox24-Feb-22 2:09 
GeneralRe: ASP.NetCore Freeze the header of html table Pin
Richard Deeming24-Feb-22 21:33
mveRichard Deeming24-Feb-22 21:33 
GeneralRe: ASP.NetCore Freeze the header of html table Pin
pkfox24-Feb-22 21:56
professionalpkfox24-Feb-22 21:56 
GeneralRe: ASP.NetCore Freeze the header of html table Pin
Richard Deeming24-Feb-22 22:37
mveRichard Deeming24-Feb-22 22:37 
GeneralRe: ASP.NetCore Freeze the header of html table Pin
pkfox24-Feb-22 23:14
professionalpkfox24-Feb-22 23:14 
GeneralRe: ASP.NetCore Freeze the header of html table Pin
Richard Deeming24-Feb-22 23:23
mveRichard Deeming24-Feb-22 23:23 
GeneralRe: ASP.NetCore Freeze the header of html table Pin
pkfox24-Feb-22 23:35
professionalpkfox24-Feb-22 23:35 
GeneralRe: ASP.NetCore Freeze the header of html table Pin
Richard Deeming24-Feb-22 23:52
mveRichard Deeming24-Feb-22 23:52 
GeneralRe: ASP.NetCore Freeze the header of html table Pin
pkfox25-Feb-22 2:31
professionalpkfox25-Feb-22 2:31 
Questionselect data from two table of database based on one column of excel data which is uploaded . Pin
Member 1449552212-Feb-22 23:36
Member 1449552212-Feb-22 23:36 
AnswerRe: select data from two table of database based on one column of excel data which is uploaded . Pin
Richard Deeming14-Feb-22 3:46
mveRichard Deeming14-Feb-22 3:46 
AnswerRe: select data from two table of database based on one column of excel data which is uploaded . Pin
RedDk14-Feb-22 7:53
RedDk14-Feb-22 7:53 
QuestionAsp.Net Core. Sending requests with Postman. Pin
Kamil Kluska5-Feb-22 22:47
Kamil Kluska5-Feb-22 22:47 
AnswerRe: Asp.Net Core. Sending requests with Postman. Pin
Richard MacCutchan6-Feb-22 0:28
mveRichard MacCutchan6-Feb-22 0:28 
QuestionWhich one of the following codes has better performance in ASP.NET Core? Pin
Alex Dunlop4-Feb-22 21:05
Alex Dunlop4-Feb-22 21:05 
AnswerRe: Which one of the following codes has better performance in ASP.NET Core? Pin
Afzaal Ahmad Zeeshan5-Feb-22 3:27
professionalAfzaal Ahmad Zeeshan5-Feb-22 3:27 
EF Core is smart enough to run the ToList after the entire SQL query has been built. I am guessing the GetAllMessages part applies the filtering to the query as well; if so, they're the same in the same query builder. You need to understand two parts here. First, EF Core builds a single query that is sent to the database engine. The fluent way to build a query helps you apply all sorts of ORDER BYs and WHEREs to the SQL query; including any JOINs. Then, the database query planner kicks in and prepares how to capture the data. Database query plan will always try to find the optimum way to execute the SQL commands and return the results.

Since query plans are highly based on databases themselves, I would link a Wikipedia article: Query plan - Wikipedia, you can search for the documentation per your database engine.

Now, the performance would take a toll if you are filtering on the server side and not on the database side. What I mean is, that you capture the list of the records from the database and then filter them in the memory of the server process. Boy, that'd hurt a lot.

Applies to modern async-based EF-only: Finally, the performance can be improved (in terms of number of requests per second) if you would use ToListAsync() instead of ToList(), where the later is a synchronous operation and would block the thread.

DbContext Lifetime, Configuration, and Initialization - EF Core | Microsoft Docs
Efficient Querying - EF Core | Microsoft Docs
Performance Diagnosis - EF Core | Microsoft Docs
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

QuestionWhat to use for a job scheduler for a .net app with plugins for each job Pin
jumbojs29-Jan-22 3:39
jumbojs29-Jan-22 3:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.