473,473 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

if db2 udb can create hash index?

hello all,
we know that db2 create index using B-Tree,but if i want to
create index using hash structure,how can i do it? in my opinion, db2
usually create index using B-tree,my question is if db2 udb support to
create index using hash?
thanks very much
2007.09.22

Sep 21 '07 #1
2 4201
On Sep 21, 9:23 pm, db2db2...@gmail.com wrote:
hello all,
we know that db2 create index using B-Tree,but if i want to
create index using hash structure,how can i do it? in my opinion, db2
usually create index using B-tree,my question is if db2 udb support to
create index using hash?
thanks very much
2007.09.22
Not sure if that is what you are looking for, but have a look at MDC
and block index:

http://publib.boulder.ibm.com/infoce...n/c0007201.htm

/Lennart
Sep 21 '07 #2
db*******@gmail.com wrote:
we know that db2 create index using B-Tree,but if i want to
create index using hash structure,how can i do it? in my opinion, db2
usually create index using B-tree,my question is if db2 udb support to
create index using hash?
DB2 doesn't have hash indexes. I actually have never heard of a request
for it. Do you have performance problems with B-Tree indexes?

The closest you can get to hash-index would be creating a "range
clustered table".
These tables basically compute the physical rowid from the primary key.
They are great for look-up tables...

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Sep 21 '07 #3

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

Similar topics

3
by: Markus Dehmann | last post by:
I have a class "Data" and I store Data pointers in an STL set. But I have millions of inserts and many more lookups, and my profiler found that they cost a lot of runtime. Therefore, I want to...
47
by: VK | last post by:
Or why I just did myArray = "Computers" but myArray.length is showing 0. What a hey? There is a new trend to treat arrays and hashes as they were some variations of the same thing. But they...
11
by: Angus Comber | last post by:
Hello I want to create a lookup table where I can store string keys: For example: 192.168.0.1 -> Purple 192.168.0.2 -> Blue 192.168.0.3 -> Red
12
by: wxs | last post by:
Many times we have a bunch of enums we have from either different enums or the same enum that will have various numeric values assigned. Rarely will there be collisions in numbering between the...
7
by: Diane | last post by:
Hi everybody. Does anyone have any sample hash table implementation for separate chaining? I'm trying to implement it myself, but I'm stuck. Thanks!
21
by: Johan Tibell | last post by:
I would be grateful if someone had a minute or two to review my hash table implementation. It's not yet commented but hopefully it's short and idiomatic enough to be readable. Some of the code...
139
by: ravi | last post by:
Hi can anybody tell me that which ds will be best suited to implement a hash table in C/C++ thanx. in advanced
2
by: jarea | last post by:
I have read quite a bit about this error but I have yet to find the solution to my problem. I am trying to execute the following mysql statement: alter table line_items add...
3
by: digitech | last post by:
Hi, In perl I can create a hash of hash which would have something like $MYHASH{'USER1'}{'SPORT'}{'FOOTBALL'} =1 $MYHASH{'USER1'}{'SPORT'}{'TENNIS'} =1 ...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
1
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...
0
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
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.