Hello All,
We have many columns in our source tables where data type is varchar(500). However in actual practice many of these values are null and not more than 15 characters. My understanding was if we use sort then actual scratch disk space requirement would be (average row length * record count). But I have observed that datastage is taking maximum row length. Due to this we need huge resource disk space. Is there any option by which sort will only take actual row size into consideration while creation files in scratch disk.
Same thing is for resource disk as well.
Thanks in advance.
-CDW
Scratch and Resource disk space
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Don't believe so.
But you could redefine them as, say, VarChar(20), add a field to identify the row number, and join back to the original data later if needed. Alternately you could define them as unbounded VarChar.
But you could redefine them as, say, VarChar(20), add a field to identify the row number, and join back to the original data later if needed. Alternately you could define them as unbounded VarChar.
Last edited by ray.wurlod on Wed Jul 22, 2009 4:56 pm, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Your datatype is a varchar, so by nature is variable length. Defining it with a ceiling value (max) of 500 or otherwise will reserve that space for every single record. Is there any need for this ceiling value in your requirement? If not, remove it altogether and just state it as a varchar, which will prove far more space efficient :D. The same holds true for datasets as well as scratch.
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
-
- Premium Member
- Posts: 67
- Joined: Thu Aug 09, 2007 7:51 pm