Monday, December 30, 2002

Andres Aguiar had a recent post on Stored Procedures vs. direct queries.  This has been a hot topic at work lately, and aside from my recent learning experiences with DB2, I can't speak with any authority on other DB's support for stored procs.  However, when he said

Java programmers seldom use stored procedures. They are not portable, it breaks the ‘write once run anywhere’ motto

it brought to mind a recent quote in the whole .NET vs J2EE pet store brouhaha, something like "Sun recommends direct queries, but that's stupid".  And this was coming from someone on the J2EE side of the debate.  So this comment is a little perplexing.  As I mentioned, my cross platform DB experience is pretty minimal (even when I was doing Java a couple years ago, it was against SQL Server), but it seems like by doing direct queries, you're throwing out a lot of potential optimizations at the database level that could otherwise be hidden behind stored procs. 

9:42:21 PM  permalink Click here to send an email to the editor of this weblog. 


Stories
DateTitle
1/23/2003 Why XML?
8/13/2002 Resolution for IE and Windows problems
8/10/2002 Supporting VS.NET and NAnt
5/11/2002 When do you stop unit testing?
Contact
jabber: weakliem
YM: gweakliem
MSN: gweakliem@pcisys.net
email: Click here to send an email to the editor of this weblog.
Subscribe to "Gordon Weakliem's Weblog" in Radio UserLand.
Click to see the XML version of this web page.