Performance impact of table extensions without fields (only code)?

michael.vogel@agiles.net
Member Posts: 11
Hi!
It is a known fact that due to the needed table joins a table extension can have an impact on the performance. But table extensions can also be used to store table related code - without extending the table structure. How does this impact the performance?
Or are there other recommendations of storing such code? I don't like the idea of having some "(tablename) management" codeunits.
Thanks!
It is a known fact that due to the needed table joins a table extension can have an impact on the performance. But table extensions can also be used to store table related code - without extending the table structure. How does this impact the performance?
Or are there other recommendations of storing such code? I don't like the idea of having some "(tablename) management" codeunits.
Thanks!
0
Answers
-
Although I can not say with absolute certainty without testing the scenario, I highly doubt that it affects performance, even when you extend the table structure. The reason for the performance impact is due to the lookups, when performing any form of data related operation. This is not much different from a flowfield lookup, although it can be faster, depending on the table and fields associated.
Anyway, when NAV references the code within the object table, there will or should always be just 1 set of codes, not 1 per record, therefore, there shouldn't be any impact on performance. In other words, so long as you're not doing a GET, FIND, etc., there shouldn't be a difference in performance.
As for not liking the idea of some "(tablename) management" codeunit, I generally use just 1 "Extension" codeunit, the naming convention is part of the function itself, like T21_OnInsert, but you can break them down by department or relationships like "Sales Extension" and "Purchase Extension" as a way to keep your functionalities separated.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