Temporary table occupation
Comments
-
One big advantage of using a custom "template" table rather than an existing table is that you can remove all the keys that you don't need. Most hot tables in Navision, the keys use more space than the actual data, so you can generally make the record at least 1/2 the size this can be a big difference for very big tables.David Singleton0
-
and if you just read the REAL table to populate your temporary table variable, you are not going to lock the real table.
Summary:
- don't use locktable before looping your REAL table variable (and i wonder why anyone would do it)
- don't use TRUE parameters of FINSET instruction on your REAL table variable
- don't use MODIFY,INSERT,DELETE on your REAL table variable, but feel free to use them how many times you like it on your temporary variable, becauseThe whole process of working with temp table is working in Native DBMS (like when working with native DB) and is done locally on the client. No connection with anything on SQL...One big advantage of using a custom "template" table rather than an existing table is that you can remove all the keys that you don't need. Most hot tables in Navision, the keys use more space than the actual data, so you can generally make the record at least 1/2 the size this can be a big difference for very big tables.0 -
Belias wrote:David Singleton wrote:using a custom "template" table rather than an existing table is that you can remove all the keys that you don't need. Most hot tables in Navision, the keys use more space than the actual data, so you can generally make the record at least 1/2 the size this can be a big difference for very big tables.
Then you probably don't understand TempTables.
TempTables are based on CSIDE principles, so even if you disable the SFIT and SQL maintenance, then when you create as a temp table they will still use memory to create and store those Indexes.David Singleton0 -
...the keys use more space than the actual data...
anyway, i think that if a temporary table gets SO big to be a problem, you probably need to rethink the process/data structure, but this is another story.0 -
Belias wrote:i think that if a temporary table gets SO big to be a problem, you probably need to rethink the process/data structure,
:thumbsup: Yes I agree, and that is probably the case here.David Singleton0
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