Importing objects to a productive database

ta5
Member Posts: 1,164
Hi
This is a rather philosophical question but anyway:
Let's say, we are importing a table and a codeunit in a database. Users using the table next time get an error and start the process again. But the old codeunit might still reside in the clients object cache untile the client is restarted.
Is that correct? Theoretically strange things could happen :?
Thanks in advance
Thomas
This is a rather philosophical question but anyway:
Let's say, we are importing a table and a codeunit in a database. Users using the table next time get an error and start the process again. But the old codeunit might still reside in the clients object cache untile the client is restarted.
Is that correct? Theoretically strange things could happen :?
Thanks in advance
Thomas
0
Answers
-
Yeah.... that's why we schedule our production migrations for known downtime. Breaks, lunch, after hours... If it's an emergency fix, we send out a corporate-wide email and request that everyone exit the system at a particular time.0
-
Yes when that object is in a client sessions's object cache that does happen, and quite often too. This is the reason why you don't just continually import modified objects into the production database.
If you're still in a phase where this is needed, and scheduling object updates is not practical, you will need to set the object cache to 0 on all clients. Be aware that people find out about this property and set it themselves when they browse this forum for instance.
0 -
But of course setting the cache to 0 will lead to performance loss...0
-
Thanks for your thoughts.
I see the point, but interestingly enough, it works most of the time even if nobody starts the client new.0 -
Yes very annoying isn't it. I've seen it where it was refreshing over and over with the new object, and I went "ok I guess I don't have to restart NAV", then I was getting mixed results and found out it was not refreshing. I think in my case it had something to do with having the debugger on.
The safest way to go is make sure to restart the clients.0 -
yep, you are right, best way always restart client.0
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