Impact of SQL Variant Datatype on performance

tle-cargo
Member Posts: 3
Hi,
We are managing 12 companies in Microsoft Dynamics NAV, on 5 distinct C/Side databases. All the databases have exactly the same version of objects, based on a highly customized French 3.6 NAV version, with a lot of specific functionalities, running with a 4.0 SP2 server version.
The DB sizes range from 140GB to 410GB, the number of sessions from 50 to 120. On the biggest DB, a very fast growing one, the largest tables are Value Entry 103 GB, Sales Invoice Line 70 GB and Item Ledger Entry 59 GB.
We are in process to move to SQL server, using the more recent SQL server and NAV server versions. Then arises the question of the SQL datatype for the Code fields.
To avoid renumbering of a huge quantity of data and maybe missing some impacts in the fields to convert, we are wondering to convert ALL Code fields to SQL Variant Datatype, except maybe Postcodes and a few other fields.
Does someone has an idea of the impact this may have on the posting processes and the general performance of Dynamics NAV ? In comparison to all code fields in Varchar Datatype, will we lose around 2% speed, around 10% or even more ?
Thanks for sharing your experience on this topic.
We are managing 12 companies in Microsoft Dynamics NAV, on 5 distinct C/Side databases. All the databases have exactly the same version of objects, based on a highly customized French 3.6 NAV version, with a lot of specific functionalities, running with a 4.0 SP2 server version.
The DB sizes range from 140GB to 410GB, the number of sessions from 50 to 120. On the biggest DB, a very fast growing one, the largest tables are Value Entry 103 GB, Sales Invoice Line 70 GB and Item Ledger Entry 59 GB.
We are in process to move to SQL server, using the more recent SQL server and NAV server versions. Then arises the question of the SQL datatype for the Code fields.
To avoid renumbering of a huge quantity of data and maybe missing some impacts in the fields to convert, we are wondering to convert ALL Code fields to SQL Variant Datatype, except maybe Postcodes and a few other fields.
Does someone has an idea of the impact this may have on the posting processes and the general performance of Dynamics NAV ? In comparison to all code fields in Varchar Datatype, will we lose around 2% speed, around 10% or even more ?
Thanks for sharing your experience on this topic.
0
Comments
-
Why do you feel the need to incorporate variant data types?0
-
I have done a lot of Native to SQL conversions, and NEVER used variant datatype. Better to take the hit fix the errors and move on.David Singleton0
-
About Variant Datatype, I guess it's not a very good solution.
I guess because I know how SQL server is managing this kind of data.
For the moment I found no one able to tell, by his own experience, the real impact on NAV's global performance of the use of Variant datatype instead of Varchar datatype.
In fact, I'm facing a serious problem in most of the NAV companies I'm in charge of, because on several main tables (item, customer,...) the users use to allocate significant id numbers.
For example, some item numbers may be purely numerals (standard items), other may also contain letters (spare parts), the item numbers may run from 1 to over 1.000.000, many ranges of numbers having special meanings : under 20.000, under 50.000, under 80.000, over 100.000, over 200.000 ...
With Varchar Datatype, all this organisation will be down.
But renumbering the items would have big physical impact on the warehouse because the item numbers are present on stickers on the items, on the sale packaging and on the parcels. Also, part of the item number may be inserted in the GS1 barcode. And so on.
So, I'm not meaning Variant datatype is really OK, I'm just looking for trusted information to avoid spending too much time testing by myself, because I'm not sure I can avoid this solution, specially for the Item table.
Anyway, I will have to prefer a test than a guess if no one ever experienced.0 -
tle-cargo wrote:For example, some item numbers may be purely numerals (standard items), other may also contain letters (spare parts), the item numbers may run from 1 to over 1.000.000, many ranges of numbers having special meanings : under 20.000, under 50.000, under 80.000, over 100.000, over 200.000 ...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