I have a symfony command that exports more than 100,000 lines from a database to an xml file.
In the current version of the php script everything is first put in RAM