Unable to read large XML file PHP



I am trying to parse data from an XML file of size nearly 10GB provided by a third party and they are daily updating the same file.


I need to parse the same and populate into MySql DB.


As per the research I found that XMLReader can handle this.


Tried some examples from Stackoverflow but was not working for this size.


Please share idea about chop the xml file into manageable pieces, then launch multiple importer "instances" in the cloud to process the individual files using PHP.


No comments:

Post a Comment