dbTalk Databases Forums  

Column types

comp.databases.ingres comp.databases.ingres


Discuss Column types in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
colin.hay@fintechnix.com
 
Posts: n/a

Default Column types - 09-30-2005 , 01:49 AM






We have tables in our schema with columns of type VARCHAR, CHAR, TEXT
and C

If a join occurs between a column of type TEXT and a column of type
VARCHAR (or C and CHAR) does this mean casting occurs and indices may
not be employed because of this ?

I am trying to push for the need to convert all our TEXT columns to
VARCHAR and all our C columns to CHAR to potentially improve
performance. Is this worthwile ?

Colin Hay


Reply With Quote
  #2  
Old   
Betty & Karl Schendel
 
Posts: n/a

Default Re: [Info-ingres] Column types - 09-30-2005 , 06:12 AM






At 11:49 PM -0700 9/29/05, colin.hay (AT) fintechnix (DOT) com wrote:
Quote:
We have tables in our schema with columns of type VARCHAR, CHAR, TEXT
and C

If a join occurs between a column of type TEXT and a column of type
VARCHAR (or C and CHAR) does this mean casting occurs and indices may
not be employed because of this ?
I'm never quite sure when this happens. I think you'll find that C joining
to anything non-C will not use an index, because of the peculiar blank-
ignoring semantics of C. TEXT and VARCHAR also have slightly different
semantics dealing with trailing blanks, but I'm not sure if it suppresses
index usage.

Quote:
I am trying to push for the need to convert all our TEXT columns to
VARCHAR and all our C columns to CHAR to potentially improve
performance. Is this worthwile ?
You definitely want to get rid of the C's unless you are depending on
their weird comparison semantics. TEXT I'm not so sure of, but if
you're going to go to the effort of changing C you might as well change
both.

Karl


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.