473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

clusterratio

Jo
Hi,
Could someone pls help me understand what factors might effect the
clusterratio of an index.What action might increase this value in
syscat.indexes for a particular index.
Thanks a lot.

Mar 2 '07 #1
4 5473
cluster ratio get affected when you are deleting and inserting lots of
data in table.
it is the alignment of column data in index in accordance with sort
order of table column
only one index among many indexes on single table can have 100%
cluster ratio
REORG will help you bring up cluster ratio

RUNSTATS first
REOGR and then
RUNSTATS again
On Mar 2, 11:53 am, "Jo" <joshuajosep...@yahoo.comwrote:
Hi,
Could someone pls help me understand what factors might effect the
clusterratio of an index.What action might increase this value in
syscat.indexes for a particular index.
Thanks a lot.

Mar 2 '07 #2
On Mar 2, 11:57 am, "db2admin" <jag...@gmail.comwrote:
cluster ratio get affected when you are deleting and inserting lots of
data in table.
it is the alignment of column data in index in accordance with sort
order of table column
only one index among many indexes on single table can have 100%
cluster ratio
REORG will help you bring up cluster ratio

RUNSTATS first
REOGR and then
RUNSTATS again
It is possible for more than one index to have a cluster ratio of 100,
but it would be somewhat coincidental.

For example suppose you had a clustered index on the primary key,
which was vendor number (defined as an identity column), and another
indexed column (not clustered) which is the timestamp of when the row
is inserted (current_timestamp). Then both of these indexes could
easily have a cluster ratio of 100 (percent).

Mar 3 '07 #3
Jo
pls let me provide more details. i have 2 identical tables with
identical data. the only difference is the length of 2 char columns is
defined longer in one table (table a) than in the other( table b).
This seems to increase the clusterratio of the index on table a as
compared to that of on table b. i'm trying to understand how the
column length affects clusterratio.
thanks a lot.

Mar 5 '07 #4
"Jo" <jo************@yahoo.comwrote in message
news:11**********************@8g2000cwh.googlegrou ps.com...
pls let me provide more details. i have 2 identical tables with
identical data. the only difference is the length of 2 char columns is
defined longer in one table (table a) than in the other( table b).
This seems to increase the clusterratio of the index on table a as
compared to that of on table b. i'm trying to understand how the
column length affects clusterratio.
thanks a lot.
Reorg the tables and specify the clustering index as the index to use for
the reorg.

Execute runstats on the tables, use indexes all, and capture detailed index
stats.

Now check the cluster ratio.
Mar 6 '07 #5

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

Similar topics

10
by: Jean | last post by:
Hi, how to know for a particular table if it is organized by index, and which one ? reorg table index ind1 -> the table is organised by ind1 i wan't to know that for all table thx
1
by: hikums | last post by:
1. I did a reorgchk, and found that F2 on table and F4 on index indicates a reorg is necessary. 2. Did a reorg. 3. Again I do a reorgchk, the report is the same as in Step 1 4. I do a...
15
by: Hemant Shah | last post by:
Folks, We have an SQL statement that was coded in an application many years ago (starting with DB V2 I think). When I upgraded to UDB 8.2, the optimizer does not use optimal path to access the...
15
by: rAinDeEr | last post by:
Suppose i have a table which holds thousands of records with the following structure CREATE TABLE "test "."T_CNTRY" ( "CNTRY_CDE" CHAR(2) NOT NULL , "CNTRY_NAME" VARCHAR(50) ) and i have...
9
by: db2udbgirl | last post by:
Is this possible to tune this query further : Env : DB2 UDB 8.2 on AIX 5.3, Non partitioned tables Query: SELECT ETL.T00601.* FROM ETL.T00601, ETL.STG_LAAM_CARD20_BUS_ASCT_BUS_FCN where
3
by: db2udbgirl | last post by:
Table level snapshot showed me a entry as below Table Schema = CARD Table Name = DEALER Table Type = User Data Object Pages = 3480 Index Object Pages = 2622 Rows...
4
by: dunleav1 | last post by:
I ran the storage manager against a test database I have. One index comes up with a red box next to it's name. The cluster ratio shows as 1. If I collect detailed statistics against the index, the...
2
by: rendezvous | last post by:
analysing the catalog tables in db2 is there any parameter/parameters by which we can know that the statistics for teh optimizer have to be collected. eg: an application developer is doing huge...
4
by: esmith2112 | last post by:
I have a query running on a federated database that takes the form select col1, col2 from nickname1 where <conditions exist> union all select col1,col2 from nickname2
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.