![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hey all, I've heard through the grapevine that a varchar is not an appropriate data type for a column that is a key column, or one that is heavily joined on. Can anyone out there give me a definitive answer as to whether or not there any performance issue(s) to be concerned with here? |
#3
| |||
| |||
|
|
"Grant Wolcott" <wolcott (AT) fstrf (DOT) org> wrote in message news:mailman.1111161482.26687.info-ingres (AT) cariboulake (DOT) com... Hey all, [good stuff snipped] Varchars per se are perfectly OK as key attributes--as they necessarily must be if Ingres wants to be called an RDBMS. Roy Hann (rhann at rationalcommerce dot com) Rational Commerce Ltd. www.rationalcommerce.com "Ingres development, tuning, and training experts" |
#4
| |||
| |||
|
|
"Grant Wolcott" <wolcott (AT) fstrf (DOT) org> wrote in message news:mailman.1111161482.26687.info-ingres (AT) cariboulake (DOT) com... Hey all, I've heard through the grapevine that a varchar is not an appropriate data type for a column that is a key column, or one that is heavily joined on. Can anyone out there give me a definitive answer as to whether or not there any performance issue(s) to be concerned with here? That is pretty close to being a superstition. However there are internal limits to the size of a key attribute, and it is easy enough to define a varchar that exceeds it (400 bytes). Large keys can--in principle-slightly impair performance, but I have yet to see a real system where there weren't also a host of other WAY worse problems that completely swamp any small performance penalty that large keys incur. Varchars as keys were historically more of a problem than they are today. It rather depends on how big you intend the attribute to be. Luckly, in nature, one rarely sees truly enormous keys. (Directory paths are one notorious exception that springs to mind though.) Varchars per se are perfectly OK as key attributes--as they necessarily must be if Ingres wants to be called an RDBMS. Roy Hann (rhann at rationalcommerce dot com) Rational Commerce Ltd. www.rationalcommerce.com "Ingres development, tuning, and training experts" _______________________________________________ Info-ingres mailing list Info-ingres (AT) cariboulake (DOT) com http://mailman.cariboulake.com/mailm...py/info-ingres |
#5
| |||
| |||
|
|
Thanks lots, Roy - this gives me more confidence to barrel ahead... We want to change some of the columns of our in-house dictionary tables from char(8) to varchar(32). |
![]() |
| Thread Tools | |
| Display Modes | |
| |