mibuso.com

Microsoft Business Solutions online community
It is currently Fri May 24, 2013 12:21 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: maintain keys table 7002
PostPosted: Wed Jan 19, 2011 12:26 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
hi everyone, i was wondering what'w the reason in maintaining both these keys in table 7002
Quote:
Item No.,Sales Type,Sales Code,Starting Date,Currency Code,Variant Code,Unit of Measure Code,Minimum Quantity (PK)
Sales Type,Sales Code,Item No.,Starting Date,Currency Code,Variant Code,Unit of Measure Code,Minimum Quantity

Isn't it safe to UNmaintain the second key?what's the reason for sql to use the second one?

_________________
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog


Top
 Profile  
 
 Post subject: Re: maintain keys table 7002
PostPosted: Wed Mar 30, 2011 4:07 pm 
Offline
Moderator
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Wed Jul 02, 2003 10:13 am
Posts: 7501
Location: Milan
Country: Italy (it)
A little late...but
Customer Card=>menubutton functions=>Prices. Shows the Sales prices and uses the second key.

_________________
Regards,Alain Krikilion
Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title! || Read Forum Rules before making a posting


Top
 Profile  
 
 Post subject: Re: maintain keys table 7002
PostPosted: Wed Mar 30, 2011 4:19 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
it's never late for researching (as you may have understood, my post was actually a pure consideration on that table, it was not a "problem" to solve).
ok, now that i know where it's used, i can do some test; i mean: how much is the benefit of maintaining this key against the drawback of maintaining an additional key for the table? :-k
thanks for the info!

_________________
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog


Top
 Profile  
 
 Post subject: Re: maintain keys table 7002
PostPosted: Wed Mar 30, 2011 4:36 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Thu Jan 02, 2003 6:37 pm
Posts: 7931
Location: Howell, MI
Country: United States (us)
That table has only 2 keys, SQL Server won't have any problem maintaining those. Try to find other tables to spend that much energy on :mrgreen:

_________________
Daniel Rimmelzwaan
MVP - Dynamics NAV


Top
 Profile  
 
 Post subject: Re: maintain keys table 7002
PostPosted: Wed Mar 30, 2011 4:46 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
DenSter wrote:
That table has only 2 keys, SQL Server won't have any problem maintaining those. Try to find other tables to spend that much energy on :mrgreen:

You're right, but it's a kind of "game" for me to troubleshoot sql performance (i'm not talking about a production DB, obviously)...i love the subject very much, and i'm always trying to dig into it deeper and deeper. :mrgreen:

_________________
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog


Top
 Profile  
 
 Post subject: Re: maintain keys table 7002
PostPosted: Wed Mar 30, 2011 7:16 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Thu Jan 02, 2003 6:37 pm
Posts: 7931
Location: Howell, MI
Country: United States (us)
Ah but figuring out a production database is what performance troubleshooting is all about. You can't look at a Cronus database and decide based on a where used analysis which keys can be disabled, the Cronus database tells you absolutely NOTHING about where the performance problems are. What you are doing there is definitely NOT performance troubleshooting. Looking at tables with just two keys is not where you should be focusing. What will matter most is where the bulk of the transactions are, where the highest number of users are going to work in the same area at the same time.

Analyzing actual production usage is what will make you good at this 'game'.

_________________
Daniel Rimmelzwaan
MVP - Dynamics NAV


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: