What is the best way to detect n + 1 selection issues if I use linq for SQL, we are currently working on a project and it seems to display some lists quite slowly. What is the best method to detect this?
Perhaps this will help:
http://ayende.com/Blog/archive/2009/11/13/linq-to-sql-profiler-is-now-on-public-beta.aspx http://weblogs.asp.net/scottgu/archive /2007/07/31/linq-to-sql-debug-visualizer.aspx http://visualstudiogallery.msdn.microsoft.com/ru-ru/d5a64d5a-174a-4357-ad84-dbeeec030f23
SQL Profiler , .
n + 1 , , SQL.
DataContext.Log TextWriter, SQL . , . Linq to SQL DebuggerWriter. DebuggerWriter.
DataContext db = new DataContext(); #if DEBUG db.Log = new DebuggerWriter(); #endif
Source: https://habr.com/ru/post/1723471/More articles:Flex3 Combobox does not display itemRenderer when closing - flexEpiServer: How to check if a page exists? - episerverIs this good XML? - xmlDoes Python detect a USB drive and then assign a drive letter? - pythonIs performance really striking when catching exceptions? - language-agnosticAdding pagination to index.html.erb in Ruby on Rails - simple question - ruby ββ| fooobar.comExceptions as a control mechanism - exceptionPostgreSQL and JMS (or another Pub-Sub / Callback mechanism) - javaExplain the need for mutexes in locales, please - c ++Getting HTML excerpt in PHP - htmlAll Articles