![]() | |
#11
| |||
| |||
|
|
I agree with the above statement. It gives DB2 a bad reputation having to explain this to developers over and over again. One can try the vargraphic data type, but that will hugely increase the size of your database. |
#12
| |||
| |||
|
|
I agree with the above statement. It gives DB2 a bad reputation having to explain this to developers over and over again. One can try the vargraphic data type, but that will hugely increase the size of your database. Ok, now I'm a little bit confused. Using a new datatype which masks the byte size (in favor of all possible characters) or using VARGRAPHIC - what is the difference? In any case, we have to abide by the rules of computer science. No database will fit a 5 byte character string in a 4 byte field. Don't get me wrong, there might be databases which handle this differently, but the rules arethe same and always will be. Just because other databases won't tell you that space is lost by doing a generalized datatype is not going to change the fact that space (and performance) is lost. I'm not sure how much I should go into detail in regards to programming, but I guess most of you do have extensive knowledge in programming and the internals of compiler and processor fundamentals. So please, if you have a valid idea how to fit a 5 byte character string into a 4 byte field (which is just an example - it could also be a 20 byte string into a 5 byte field), humor me. Don't mention compression, because this we aready have. But we are not talking about compression, we are talking about the low level representation of data. I always dreamt about unicode capable CPUs, but nobody is listening to me.... -- Helmut K. C. Tessarek DB2 Performance and Development /* * *Thou shalt not follow the NULL pointer for chaos and madness * *await thee at its end. */ |
#13
| |||
| |||
|
|
I agree with the above statement. It gives DB2 a bad reputation having to explain this to developers over and over again. One can try the vargraphic data type, but that will hugely increase the size of your database. Ok, now I'm a little bit confused. Using a new datatype which masks the byte size (in favor of all possible characters) or using VARGRAPHIC - what is the difference? |
#14
| |||
| |||
|
|
I would also be very happy with basic functionality like this: - the new varchar type reserves 4 times the space specified - the length is checked on the specified size (duh...) - all scalar functions (LENGTH, etc...) automatically apply the CODEUNITS32 keyword on this data type |
#15
| |||
| |||
|
|
Hi Frederik, On 15.10.10 1:42 , Frederik Engelen wrote: I would also be very happy with basic functionality like this: - the new varchar type reserves 4 times the space specified - the length is checked on the specified size (duh...) - all scalar functions (LENGTH, etc...) automatically apply the CODEUNITS32 keyword on this data type I'm on vacation right now, but when I'm back at work, I'll start a discussion with the different component owners (although I can't promise that there'll be a positive outcome :-)) What do you mean by 'the length is checked on the specified size'? Can you give me some examples? Cheers, *Helmut -- Helmut K. C. Tessarek DB2 Performance and Development /* * *Thou shalt not follow the NULL pointer for chaos and madness * *await thee at its end. */ |
![]() |
| Thread Tools | |
| Display Modes | |
| |