Hi,
We have a requirement where we need to split the data into multiple small XML files with around 1000 rows. We can do this based on the rowcount but we are not sure which stage to be used to split the rows in multiple files.
Earlier we were writing all the data to a single file but the job is failing due to space issue on the server, so we need to split the data.
Please help.
Thanks,
Avats
Spiltting a huge file into multiple small files
Moderators: chulett, rschirm, roy
Space is space, no matter if it's all in one file or many... perhaps you meant a file size issue? Regardless, what you want to take advantage of is the Trigger Column in the XML Output stage.
Every time the value in the column changes, the output file is closed and a new one is opened. It doesn't need to be a column you pass to the output field so you could simply count the output rows and change the value in the trigger column every 1000 rows.
Every time the value in the column changes, the output file is closed and a new one is opened. It doesn't need to be a column you pass to the output field so you could simply count the output rows and change the value in the trigger column every 1000 rows.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 47
- Joined: Thu Dec 09, 2010 4:37 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 72
- Joined: Wed Dec 12, 2007 2:29 am
I don't think coming up with ways to split the file will accomplish anything other than complicating the job and getting the same results.
The issue the OP has is one of disk space. You can split the file into hundreds of smaller files and it won't matter one iota if you are still writing them out to the same disk - eventually you are going to run out of space.
What the OP needs is another disk to write to or to make enough space on the disk he is currently writing to in order to run the job.
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
What the OP needs is another disk to write to or to make enough space on the disk he is currently writing to in order to run the job.