On Tue, Nov 1, 2011 at 1:13 AM, Matt Blatchley wrote:
> Microsoft SQL Server 2008 (SP1)
> Standard Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 2)
>
> Database table stores the Metrics by daily values so it's constantly
> being hit by the imported data and the user interface.

That is what snapshot isolation is designed for:
http://msdn.microsoft.com/en-us/library/tcbchxcb%28v=vs.80%29.aspx

Use with updlock and as short lock acquisition timeout to grab items
from a queue table and the snapshot isolation will make sure the
concurrent updates to the metrics table won't affect eachother.

Jochem


-- 
Jochem van Dieten
http://jochem.vandieten.net/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348403
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to