473,394 Members | 1,693 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,394 software developers and data experts.

INDEX setup on surrogate key

Hi,

I am creating an unique index on surrogate key column. The surrogate
key is a generate number always increasing on my dimension table. The
only operation on the table is insert (no update and no delete).

1- Can I specify pctfree=0 for the unique index on the surrogate key
without getting page splits since I am only inserting an increasing
number?

2- Does it make sense to cluster the unique index on the surrogate
key since the only use of this column is to make the join with the fact
table (no range scan, no order by, no group by and no distinct)?

I am working the DB2 V8.2.3 on IBM AIX.

Thanks.

Jul 10 '06 #1
2 1697
JohnnyDeep wrote:
Hi,

I am creating an unique index on surrogate key column. The surrogate
key is a generate number always increasing on my dimension table. The
only operation on the table is insert (no update and no delete).

1- Can I specify pctfree=0 for the unique index on the surrogate key
without getting page splits since I am only inserting an increasing
number?
Yes.
2- Does it make sense to cluster the unique index on the surrogate
key since the only use of this column is to make the join with the fact
table (no range scan, no order by, no group by and no distinct)?

I am working the DB2 V8.2.3 on IBM AIX.

Thanks.
May be better to set the table to append mose (always insert at the
end) without a clustering index. You should get 100% cluster ratio
anyway, without the overhead of having to use a clustering index in the
insert rule.

Jul 10 '06 #2
Mark A wrote:
May be better to set the table to append mose (always insert at the
end) without a clustering index. You should get 100% cluster ratio
anyway, without the overhead of having to use a clustering index in the
insert rule.
Should be: append mode, not append mose

Jul 10 '06 #3

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

Similar topics

0
by: Patrick Mezenberg | last post by:
Hi all, It should be possible to let inproc COM-components live in a surrogate process (for instance in the default Dllhost.exe surrogate process, for more info see http://msdn.microsoft.com...
3
by: Chris Mullins | last post by:
I've got a big unicode character, and i'm trying to build it into a string. The unicode character is in the range "0x10400", so it's going to require a surrogate pair. I've been through all...
2
by: Chris Mullins | last post by:
I've spent a bit of time over the last year trying to implement RFC 3454 (Preparation of Internationalized Strings, aka 'StringPrep'). This RFC is also a dependency for RFC 3491...
14
by: uli2003wien | last post by:
Dear group, we are running a SQL-Server Database which is about 30 GB large. The purpose of this database is to contain periodic data from automatic devices which insert values into some tables....
2
by: neilt100 | last post by:
Am running Win XP SP2 with Classic ASP+VB6 dll's alongside ASP.NET+C# dll's. I keep getting the following error … ‘COM Surrogate encountered a problem and needs to shut down’. This requires...
6
by: guy | last post by:
if a string contains surrogate chars (i.e. Unicode characters that consiste of more than 1 char) do functions that use an indexer or a string length into the string e.g. Mid, Len work correctly? ...
12
by: Cecil | last post by:
Does this make sense for a logon table: CREATE TABLE Logon ( ID INT NOT NULL IDENTITY PRIMARY KEY, name VARCHAR(15) NOT NULL, password VARCHAR(15) NOT NULL ) GO CREATE UNIQUE INDEX...
3
by: Sakcee | last post by:
Hi In one of the data files that I have , I am seeing these characters \xed\xa0\xa0 . They seem to break the xsl. --------------------------------------------------------------- Extra...
122
by: C.L. | last post by:
I was looking for a function or method that would return the index to the first matching element in a list. Coming from a C++ STL background, I thought it might be called "find". My first stop was...
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: 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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.