interconnectit / Search-Replace-DB

This script was made to aid the process of migrating PHP and MySQL based websites. Works with most common CMSes.
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
GNU General Public License v3.0
3.99k stars 850 forks source link

Ignore "page size" param. #351

Closed mjpyama closed 3 years ago

mjpyama commented 3 years ago

I used v4.1.2 cli with over 19,000 heavy posts in WordPress. And I use command with "-l" param(page size), but always occurred memory error. I checked the code "srdb.class.php", and found follows:

public $page_size = 50000;

But command param keyname is "pagesize". no underscore. so it is ignored. I edited $page_size = 50000; to $page_size = 500;, then command successed.

gianluigi-icit commented 3 years ago

thank you for the issue, I fixed on PR #358