Open snuyanzin opened 4 months ago
partially covered with https://github.com/datafaker-net/datafaker/pull/1177 however not all formats are supported yet
Do I understand correctly that this proposal suggests implementing a solution similar to the one used for JsonTransformer, but also for:
yes you are right
My PR covers the SQL transformer support https://github.com/datafaker-net/datafaker/pull/1264
Also a PR for JavaObjectTransformer https://github.com/datafaker-net/datafaker/pull/1313
The problem with current method like
net.datafaker.transformations.JsonTransformer#generate(net.datafaker.transformations.Schema<IN,?>, int)
it generates the wholeString
and then returns it. As a result for bigger numbers it consumes larger amount of memory and e.g. such test fails with OutOfMemoryThere is not so much we can do about this method since anyway with such approach we need somehow to store that giant string value.
Another approach is instead of generation the final string value we could generate a stream of values and return it.