Need to generate an XML column that is 1 GB for testing
COMTIBoy
Posts: 3
I'm evaluating the SQL Data Generator and was curious to know if there were any settings to control the size of data generated for the column?. I'm using the XML generator and don't see anywhere where to specify the size of the size. BY default it seems to generate 1000 rows and two columns. The XML contains string with random text. I'd like to be able to generate the string to be 1 GB in size.
Any tips greatly appreciated.
Any tips greatly appreciated.
Comments
It is possible to customize one of the generic generators and specify a minimum and maximum size for the data. In my tests, however, taking it up to 1GB tended to run SQL Data Generator out of memory, so it may not be practical to do. But if you want to try...
- Open program files\Red Gate\sql data generator 1\userexample\config\XmlGenerator.xml in Notepad.
- Modify it to add the "MinLength" and "MaxLength" properties as below.
- Save it as Program Files\Red Gate\SQL Data Generator 1\Config\BigXmlGenerator.xml
- When you re-launch SDG, your XML columns will have an "Example" category with BigXmlGenerator in it.
Here is the code for BigXmlGenerator:Yes, you were right , in that it didn't work (got the oom ) .
I tried 500MB and 100MB and that still seemed to fail.
Oh well
Here is the page regarding custom generators: http://www.red-gate.com/supportcenter/C ... c52077.htm