Improved memory usage when exporting data with generateChangeLog