views:

134

answers:

4

does it cost cost effective ? how can i profile the Sql calls to the server?

A: 

Yes, its cost effective financially and in system resources. Less time to develop the data layer code and stored procs, and the queries are parameterized so they perform as well as stored procs.

Profile it with SQL Profiler, just like any other sql activity.

StingyJack
+2  A: 

I don't know what is big for you, but you are using a project running on LINQ to SQL right now, that's Stackoverflow.

Also you would find interesting looking at this performance benchmarks. This guy profiled LINQ to SQL using ANTS profiler, although I know that most profilers would work.

But I think what you are looking for is setting your DataContext.Log property to something like Console but with profiling added, if think you can extend Console and make your own query profiler.

Augusto Radtke
A: 

Here is something that might me helpful to you : Rico Marianais (5 parts) about Linq to SQL performance.

Daok
+1  A: 

mmm , Stackoverflow is a big project for me,

i would like to know how Stackoverflow , uses the linq2sql datacontext lifetime

and how the caching is done ...

Moran
Maybe you are looking for this question: http://stackoverflow.com/questions/226127/multiplesingle-instance-of-linq-to-sql-datacontext
Sam