Closed (fixed)
Project:
Wordpress Import
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
28 Oct 2009 at 00:15 UTC
Updated:
13 Nov 2009 at 03:20 UTC
All post data is loaded into memory before the batch process is launched. On large imports (ie, 1000+ posts), this can trigger a PHP memory exhaustion error.
Instead of loading the all XML data into memory, we should use stream-based XML processing to go through the WXR data. XMLReader, available in PHP 5.1 (and PHP 5.0 via PECL module), is a good candidate.
Comments
Comment #1
lavamind commentedDone and committed!