Maximizing throughput while minimizing blocking

macuxpc
Member Posts: 16
If you have a long-running process in NAV that is causing excessive blocking of users, you can use a stored procedure to detect blocking, and prevent/minimize it:
http://www.dynamics-nav.org/?p=100
http://www.dynamics-nav.org/?p=100
MacUxPC
Dynamics-NAV.org
Dynamics-NAV.org
0
Comments
-
It looks like a new blocking implementation in Nav
. I think SQL Server do it better.
In my opinion the only way to prevent and minimize blocking is Nav code optimization.
PS. Now I always protect critical code from unexpected COMMIT like this:IF ProcIsBlocking() THEN BEGIN COMMIT; Dialog.UPDATE(3,'Sleeping due to blocking...'); SleepTime := 20; //20 seconds FOR s := 1 TO SleepTime DO BEGIN Dialog.UPDATE(4,s / SleepTime * 10000); SLEEP(1000); END; END;
Looking for part-time work.
Nav, T-SQL.0 -
rmv_RU wrote:It looks like a new blocking implementation in Nav
. I think SQL Server do it better.
In my opinion the only way to prevent and minimize blocking is Nav code optimization.
I'm not sure you understand the purpose of this. How is SQL Server doing this better, when you import let's say 5,000 Sales Orders during the day? Your users will experience heavy blocking and likely many timeouts (i.e. errors). No matter how much you optimize the Sales Order import, you will get lots of blocking.MacUxPC
Dynamics-NAV.org0 -
macuxpc wrote:I'm not sure you understand the purpose of this. How is SQL Server doing this better, when you import let's say 5,000 Sales Orders during the day? Your users will experience heavy blocking and likely many timeouts (i.e. errors). No matter how much you optimize the Sales Order import, you will get lots of blocking.
That's why i prefer configure schedule of import and optimize the code.Looking for part-time work.
Nav, T-SQL.0 -
Hi macuxpc,
I wrote a comment on the 23rd, and it is still awaiting moderation :?
Any reason you don't accept my comment on your blog?Regards
Peter0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions