Re: [GENERAL] datatype advice numeric vs. varchar

2007-01-18 Thread [EMAIL PROTECTED]
On Jan 18, 1:25 am, [EMAIL PROTECTED] (Gene) wrote: > you're probably right, actually using LIKE with numeric works fine but > of course i will have to contend with things like truncating zeros to > the left etc... are there any advantages to using ascii encoding as > far as performance of LIKE, RE

Re: [GENERAL] datatype advice numeric vs. varchar

2007-01-18 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/18/07 00:22, Michael Glaesemann wrote: > > On Jan 18, 2007, at 15:15 , Gene wrote: > >> My calculations for disk space based off some information i found >> online are ( 8 + ( 2 bytes for every four digits) ) for numeric and ( >> 4 + number of

Re: [GENERAL] datatype advice numeric vs. varchar

2007-01-17 Thread Tino Wildenhain
Gene schrieb: you're probably right, actually using LIKE with numeric works fine but of course i will have to contend with things like truncating zeros to the left etc... are there any advantages to using ascii encoding as far as performance of LIKE, REGEXES, INDEXES etc versus using UTF8? Well

Re: [GENERAL] datatype advice numeric vs. varchar

2007-01-17 Thread Gene
you're probably right, actually using LIKE with numeric works fine but of course i will have to contend with things like truncating zeros to the left etc... are there any advantages to using ascii encoding as far as performance of LIKE, REGEXES, INDEXES etc versus using UTF8? thanks, gene On 1/1

Re: [GENERAL] datatype advice numeric vs. varchar

2007-01-17 Thread Michael Glaesemann
On Jan 18, 2007, at 15:15 , Gene wrote: My calculations for disk space based off some information i found online are ( 8 + ( 2 bytes for every four digits) ) for numeric and ( 4 + number of chars ) for a utf8 varchar datatype. Are these calculations still valid and has anyone tried using numeri

Re: [GENERAL] datatype advice numeric vs. varchar

2007-01-17 Thread Martijn van Oosterhout
On Thu, Jan 18, 2007 at 01:15:02AM -0500, Gene wrote: > I'm working on a voicemail application which involves storing phone > numbers and other types that have long sequences of digits [0-9]. I > need to be able to do pattern matching using LIKE and map the fields > back to java String objects. I w

[GENERAL] datatype advice numeric vs. varchar

2007-01-17 Thread Gene
I'm working on a voicemail application which involves storing phone numbers and other types that have long sequences of digits [0-9]. I need to be able to do pattern matching using LIKE and map the fields back to java String objects. I was thinking maybe it would be more efficient to use the numer