dbTalk Databases Forums  

sybase deadlock, is it an index issue

comp.databases.sybase comp.databases.sybase


Discuss sybase deadlock, is it an index issue in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
adamquestion@gmail.com
 
Posts: n/a

Default sybase deadlock, is it an index issue - 03-03-2009 , 11:30 AM






I am having deadlock problems in writing to a table. Admin mentioned
sthg about the indices, but I did not understand it clearly. The issue
happens when two different processes try to write to the table. They
are run with 2 different update_date at the same time.


CREATE INDEX I1_table
ON dbo.table(ID)
GO
CREATE UNIQUE INDEX IU_table
ON dbo.table(model_id, update_date, ID)
GO
CREATE CLUSTERED INDEX IC_table
ON dbo.table(update_date)
WITH allow_dup_row
GO

I have an update statement at end of the procedure which updates
columns in the table with specific model_id and update_date, and
procedure deadlocks. Could you tell me why any of my index
constructions could be causing this?

Thanks

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.