If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > UOW Code

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-22-05, 01:20
AnilKale AnilKale is offline
Registered User
 
Join Date: Feb 2005
Posts: 118
UOW Code

Hi All !

Let us say I have a SQLJ Java application and there is unit of work that does 50,000 SELECT statements, and 10,000 INSERT statements.
I need to determine if the unit of work (UOW) should be performed using code executing on the application server (WebSphere Application Server) , or should it be executing code on the database server, using a stored procedure.
I would be interested in knowing how others have dealt with this architectural decision. Do you make a high level decision that dictates where the database access logic resides ? Or Do you make the decision as per the UOW requirement ? small UOW - application server will do, large UOW - database server.

Thanks
Anil
Reply With Quote
  #2 (permalink)  
Old 11-22-05, 04:08
Wim Wim is offline
Registered User
 
Join Date: Nov 2004
Posts: 1,279
An appliction server deals with the transactions. IMO it is not meant to perform set-oriented batch processes with long UOWs, but for short-duration UOWs (on individual objects). So yes, I follow this guide:
Quote:
Or Do you make the decision as per the UOW requirement ? small UOW - application server will do, large UOW - database server.
I am also interested in knowing how others deal with this.
__________________
With kind regards . . . . . SQL Server 2000/2005/2008/2008 R2 Earned beers: 16
Wim
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald Knuth
Grabel's Law: 2 is not equal to 3 -- not even for very large values of 2.
Pat Phelan's Law: 2 very definitely CAN equal 3 -- in at least two programming languages
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On