We have a table on which we have implemented a queuing system using locks SELCT TOP 1 ... (WITH (UPDLOCK, READPAST)). It's been working very well until recently when we added a column to another table that has a FK relationship with the first table. I must add that in the query that uses locks, we do a join on this second table.
Now after adding the column, we seem to be getting very frequent locks and timeouts when the query is run.
Is it possible this is related to the new column? What can be done to resolve?
We are using Telerik ORM to run the stored procedure.