record RENAME seems to process totally unrelated tables

Toddy_Boy
Member Posts: 232
Hi all
For starters we have a heavily customized database, SQL Server, Client 2009 objects 2.01.B
I'm trying to get an understanding as to what Navision is doing when renaming a record. In our strangest scenario, if we rename a Site, Navision shows some very random messages about updating tables that have no relation to the Site table whatsoever, e.g. Holiday Requests, Priority both of which are new customized tables with no relation to the site table.
The knock on effect is that this operation has to be done out of hours due to the length of time it takes to perform on a site rename.
I appreciate it's another needle in a haystack time but any pointers are as always appreciated.
For starters we have a heavily customized database, SQL Server, Client 2009 objects 2.01.B
I'm trying to get an understanding as to what Navision is doing when renaming a record. In our strangest scenario, if we rename a Site, Navision shows some very random messages about updating tables that have no relation to the Site table whatsoever, e.g. Holiday Requests, Priority both of which are new customized tables with no relation to the site table.
The knock on effect is that this operation has to be done out of hours due to the length of time it takes to perform on a site rename.
I appreciate it's another needle in a haystack time but any pointers are as always appreciated.
Life is for enjoying ... if you find yourself frowning you're doing something wrong
0
Comments
-
When you rename, Nav doesn't know all the table that it relates to. So it goes through all of the table to see if there is a relationship. After the first run I believe it keeps it in cache so that second rename is faster.0
-
Sometimes, and only if you are REALLY sure the table you are renaming is not connected to any other table ( i mean, that it's not used as a tabelrelation anywhere ), it more efficient to delete and then re-insert your record, instead of using a rename.0
-
ar3an - do you know if this would stay cached on the local machine indefinitely or whether the caching will be available for everyone?
MBerger - it's referenced in a number of places so this is sadly a non-starter
as always, thanks for the pointersLife is for enjoying ... if you find yourself frowning you're doing something wrong0 -
Toddy Boy wrote:I'm trying to get an understanding as to what Navision is doing when renaming a record. In our strangest scenario, if we rename a Site, Navision shows some very random messages about updating tables that have no relation to the Site table whatsoever, e.g. Holiday Requests, Priority both of which are new customized tables with no relation to the site table.
Make sure you have keys (indexed) on the linked fields in the tables with a lot of records.
In reality though Rename should be very rarely used, and only for exceptions and fixing errors. If you find yourself using it a lot, then either you need to redesign your way of working/data model or need to train the users to make less errors.David Singleton0 -
David Singleton wrote:Make sure you have keys (indexed) on the linked fields in the tables with a lot of records.
In reality though Rename should be very rarely used, and only for exceptions and fixing errors. If you find yourself using it a lot, then either you need to redesign your way of working/data model or need to train the users to make less errors.
:thumbsup:Microsoft Certified IT Professional for Microsoft Dynamics NAV
Just a happy frood who knows where his towel is0 -
Make sure your clients object cache is set to an appropriate value. I usually set it to 100MB. This speeds up renaming a lot.Frank Dickschat
FD Consulting0
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