What is faster?

Started by Mihai Gheorghiuabout 25 years ago2 messagesgeneral
Jump to latest
#1Mihai Gheorghiu
tanethq@earthlink.net

I have a short table (10 records) with a primary key column.

What primary key column data type will make search faster: int2 or char?
What about char(n) n=2,3...?
I'm looking for speed, as that search is very frequent.

Thanks,

Mihai Gheorghiu

#2ADBAAMD
adba.amdocs@bell.ca
In reply to: Mihai Gheorghiu (#1)
Re: What is faster?

Mihai Gheorghiu wrote:

I have a short table (10 records) with a primary key column.

What primary key column data type will make search faster: int2 or char?
What about char(n) n=2,3...?
I'm looking for speed, as that search is very frequent.

With such a short table, won't a index lookup actually make your query
slower?

--
_
/ \ Leandro Guimarᅵes Faria Corsetti Dutra +55 (11) 3040 8913
\ / Amdocs at Bell Canada +1 (514) 786 87 47
X Support Center, Sᅵo Paulo, Brazil mailto:adbaamd@bell.ca
/ \ http://terravista.pt./Enseada/1989/ mailto:leandrod@amdocs.com