When migrating large WordPress sites, including post_content and post_excerpt in the main query() result set can exhaust PHP memory limits, since all rows are loaded with their full text content at once.
This patch removes both columns from query() and fetches them individually per row in prepareRow() via a targeted SELECT, keeping memory usage bounded regardless of dataset size.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3588257-2.patch | 1.22 KB | unstatu |
Issue fork wordpress_migrate_sql-3588257
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
unstatu commentedPatch provided.
Comment #6
omarlopesinoNice catch. Merged and released in 1.0.1