Always rowlock in 4.0SP1
kriki
Member, Moderator Posts: 9,132
Someone has some experience or know more about "Always rowlock" and about possible problems in case we use it?
I found out that SQL is forced to always rowlock, avoiding deadlocks that are caused by page-locks.
But what about performance?
What about other consequences?
Thanx
I found out that SQL is forced to always rowlock, avoiding deadlocks that are caused by page-locks.
But what about performance?
What about other consequences?
Thanx
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
0
Answers
-
You need to think about that in this way: Always rowlock was enabled in older versions... :-) it means 3.60, 3.70, 4.00 w/o SPx were using the rowlock hinting.
You have performance problems when you are locking too much records - in some cases there can be thousends of locks in one transaction and it means BIG overhead. Disabling this can change it to just one table lock and better performance... it is more natural for MS SQL to work without rowlocking... :-)0 -
Thanx kine.
I have a colleague who wanted to enable this (in the hope to get less deadlocks) and I told him to wait because I didn't know the consequences.
Now I know what it is (and most of the deadlocks I have already resolved in other ways).Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thk to both of you guys.
David.0 -
Hi All,
Just my 2 cents. I have tested on 2 clients. 1 client posting large transaction (> 1000 lines), and another client running a dataport to import into GenJnlLine (> 1000 lines).
With "always rowlock" disabled, I have having locking problems. While with "always rowlock" enabled, I am having no locking problems.
BTW... I am testing on NAV 5SP1 on SQL2005. And I tested on both clients with at least 2 journal lines apart from each other. This is to avoid the upper range and lower range locking.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
