473,809 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I'm dense on Density

Hi all,

I've been doing some work trying to tune indexes in a couple of fairly large
tables that are slow for us to query. I've already gotten some
great suggestions from this group and they're much appreciated. One thing I
did to try and gather objective stats is run "DBCC SHOW_STATISTICS ".

The question I have is on interpreting the results, particularly when it
comes to "Density". I read the docs in Books Online and it tells me,
basically,
that a lower density means higher selectivity for an index, which is good.
The actual description is:

DENSITY - Selectivity of the first index column prefix (non-frequent).
What does "non-frequent" mean and why is it in brackets?

I'm also finding that the Average Key Length is 0 for every index?

And finally, the ALL DENSITY stat - it's described as:
"Selectivit y of a set of index column prefixes (frequent)." What's
"(frequent) " mean?
It shows different density stats for different combinations of columns, some
of which aren't in the actual index....so, I'm assuming that it's kind of a
"what if" analysis,
to show you what the density would be if you included different groups of
columns in the index? For a rookie, it's also hard to know the relative
magnitude of the density stats (e.g. is a density of "8" literally 4 times
as bad as a density of "2" ?) Are 2 and 8 both good numbers for density? Is
50 a good number? How high can the number go - know what I mean?

Here's a sample - it's confusing, because the density numbers are all over
the map (or maybe not - dunno):

Statistics for INDEX 'XIKudfvalues_U DFGUID_ConGUIDV alueGUID'.

Updated Rows Rows Sampled Steps Density
Average key length

-------------------- ----------- ------------ ----------- ------------------------
------------------------

Oct 14 2004 9:34PM 7963050 7957900 300 8.4528123E-4
0.0

(1 row(s) affected)

All density Columns

------------------------ --------------------------------------------------------------------------------------------------------------------------------

4.0000002E-3 UDFGUID

1.2364455E-5 UDFGUID, ConGUIDValueGUI D

1.330032E-7 UDFGUID, ConGUIDValueGUI D, ConGUID

(3 row(s) affected)



I don't know from this result if the index is a star performer or in need of
drastic medical attention..any help is very much appreciated !!

Steve


Jul 20 '05 #1
0 1273

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
34292
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it could be possible to add Pythonistic syntax to Lisp or Scheme, while keeping all of the...
5
1814
by: j_mckitrick | last post by:
When I was reading the PEP for code, Guido suggests using blank lines 'sparingly.' Yet, in most of the 'professional' code(1) I've seen, there are often HUGE amounts of whitespace, extra blank lines, and so on. Is this the norm? Has python gravitated toward more whitespace in general? jonathon (1) Zope, RocksClusters, anaconda, and others
3
1685
by: max khesin | last post by:
There has been a long argument as to whether high link density is good for the users. Some say it is, as it contains more information, the others say it is confusing. There is statistical study support for both .. I am just wondering if having the main body in a column and putting the relevant links in a sidebar may be a healthy compromise, have you seen this style? thanks, max
11
3774
by: hasadh | last post by:
Hi, is the assemly code for if..else and switch statements similar. I would like to know if switch also uses value comparison for each case internally or does it jump to the case directly at the assembly level ? for a performance critical application is it better to to use switch case or accomplish the same using fn pointers ?
3
1351
by: MLH | last post by:
Me!AddnlOwnrList.Width = 5.1875 Me.Repaint Have tried the above in the on got focus event code to make the listbox control wider when its being used. I tried it in the Enter and Exit event code too. My control more or less disappears when the Width property is set when tabbing into the control and does not come back when tabbing off the control. I've never
109
7655
by: jmcgill | last post by:
Hello. Is there a method for computing the number of digits, in a given numeric base, of N factorial, without actually computing the factorial? For example, 8! has 5 digits in base 10; 10! has 7 digits in base 10. Is there a way to compute that information without actually evaluating the factorial?
3
3325
by: arda | last post by:
does someone know that ANSI C has a power density function or not? if not how can i achieve to do it ? or is there anyplace that i can find some info about it
6
2071
by: news.demon.co.uk | last post by:
Hi All, let me try to explain what I'm trying to accomplish - I really hope someone can help. I have a table (tblArticles) which has the following: vcrKeywords varchar(2000) txtBody text(8000) vcrType varchar(128)
0
997
by: ric3031urbina | last post by:
systimax high density patch panel http://cracks.00bp.com F R E E
0
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10375
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10114
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9198
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3860
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.