Click here to Skip to main content
15,910,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi CodeProject,

We are facing an issue in our application ; that in many procedures SELECT Query is written without NOLOCKS which is creating too much problem of PERFORMANCE.

Please suggest some alternative so that we can go AHEAD for improving the Performance of Application (EXCEPT INDEXING) ; without going for altering in each procedure and replacing all SELECT with SELECT NOLOCK statement.

Thanks,
Nitish Srivastava

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 20-Jan-15 21:40pm
v2
Comments
Tomas Takac 21-Jan-15 2:54am    
What kind of performance problems? I don't think there is a magical switch that would solve your problems. You have to go trough all of them and solve one by one.
NitishIgate 21-Jan-15 10:59am    
While Fetching the data from the table ; and processing them with many inner join(s) creating delays of Operation(s). Indexing and Optimised query is helping. But can we have some other think over the performnace ?
OriginalGriff 21-Jan-15 3:40am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalization if you want to be taken seriously.
Kornfeld Eliyahu Peter 21-Jan-15 4:05am    
Lock for itself is not a performance issue, on the other hand run anything with NOLOCK can create other problems of concurrent use...
So to help you, you must be much more specific about your exact problem...
Sumit Jawale 21-Jan-15 4:06am    
your PERFORMANCE is not depend on NOLOCK.. Please try to optimise your query.. There are so many ways to optimise it..

1 solution

Hi,

From your question I can only figureout that your query is having some performance issues. You can optimize the query for increasing your performance of website.

As per my knowledge NOLOCK will only be used on a table if there is a frequent insert, update and delete operation simultaneously on the same table of data.

If your database tables are not having frequent insert, update or delete operations then you need not to use NOLOCK concept in your database query. The only thing you need to pay attention is your query should be optimized and take less time to execute.

Thanks
Sisir Patro
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900