Today I had a conversation with a co-worker that started with my declaration of not wanting to ever have to code a stored procedure. Adamantly I know that there are places where sprocs are the solution to a problem but in today’s landscape I feel those are edge cases.

Our argument..err..I mean conversation had all the usual discussion points.

co-worker points:

  • sprocs are faster
  • sprocs are more secure
  • sprocs provide a layer in n-tier

My points:

  • the dollar cost of milliseconds of speed
  • true see comments; but all queries should be parameterized hence not a valid argument.
  • an unnecessary abstraction with no benefit (except as a pro sproc discussion point)
  • sprocs often end up not separating query from command

I also made some claims, which I completely stand by, that might have seemed outlandish and bordering on reckless. Specify I said, based on the metric that 50% of a projects code is related to data access, that I would be able to complete a project in almost 40% less hours. I also suggested that sprocs, in 99.9% of their use, are a waste of time and since time = money that his project was wasting thousands of dollars writing sprocs.

With that wonderful setup I would now like to present my compliation of required OR/M, LINQ and SQL information. AKA: For the love of god at least digest this information before telling me that all data access should be done through stored procedures!

:)

ALT.NET 7: OR/M

http://altnetpodcast.com/episodes/7-object-relational-mapping/

In this episode Ward Bell (from IdeaBlade) and Jeremy Miller discuss Object-Relational Mapping and when to use ORM tools. Ward and Jeremy discuss the following:

Hanselminutes

Rob Conery limps and learns about Domain Driven Design 36:28 12/1/2008 Hanselminutes is a weekly audio talk show with noted web developer and technologist Scott Hanselman and hosted by Carl Franklin. Scott discusses utilities and tools, gives practical how-to advice, and discusses ASP.NET or Windows issues and workarounds.

Herding Code 38

NHibernate performance with Ayende, David Penton, and Ben Scheirman 44:22 3/13/2009 While K Scott and Jon were at the Microsoft MVP Global Summit, we listened in on a late night debate on NHibernate performance between Oren Eini (a.k.a. Ayende Rahein), David Penton, and Ben Scheirman. Show Links:  NHibernate – http://nhforge.org Ayende&#

Herding Code 10

Episode 10: LINQ 44:01 7/23/2008 K Scott leads us in a discussion of LINQ, including:  What is it How introducing LINQ to .NET changed the framework LINQ Providers LINQ to XML LINQ to SQL – how it’s different from EF, tips and tricks, when to use it  Links:  LINQpad 3rd Party LINQ

NET Rocks!

Peter DaBetta and Adam Machanic on creating good SQL databases

Peter DaBetta and Adam Machanic on creating good SQL databases 1:00:07 5/18/2009 .NET Rocks! is an Internet Audio Talk Show for Microsoft .NET Developers.

.NET Rocks!

Ward Bell on ORMs

Ward Bell on ORMs. 59:24 1/12/2009 .NET Rocks! is an Internet Audio Talk Show for Microsoft .NET Developers.

Articles:

Why I do not use Stored Procedures : Jeremy D. Miller

http://codebetter.com/blogs/jeremy.miller/archive/2006/05/25/145450.aspx

http://blogs.msdn.com/adonet/archive/2008/03/27/ado-net-entity-framework-performance-comparison.aspx

- Yep. I can read. EF is slower…but we are talking milliseconds here!

I wonder if I could somehow come up with the total milliseconds a project “saved” by using nothing but sproc and extrapolate out the cost per millisecond….off the top of my head I would suspect it at least 500$ per millisecond….

NHibernate: Testing The Performance Urban Legend

http://www.iamnotmyself.com/2008/07/02/NHibernateTestingThePerformanceUrbanLegend.aspx

No related posts.