Re: [Postfixadmin-devel] Request for help to creating bulk email address
Brought to you by:
christian_boltz,
gingerdog
From: David G. <da...@co...> - 2011-12-16 09:11:59
|
On 16 Dec 2011, at 05:36, Sonam Penjor wrote: > Hi guys, > > I have started to add features to creates email id by uploading CSV file > (bulk). > I am just wondering how much MB would be suitable for upload as it > involves operations: validation, checking of previous email id, > calculating the quotas and password. Is this MB in terms of memory usage within PHP while it processes the upload, or MB in terms of file size for how large your CSV may be? > Although, the upload size can be configured from php.ini file but still > to perform above operations as especially in my case I have to keep in > mind the CPU speed and bandwidth. Any other operations that may be > required. > I can't see how even a 20Mb CSV file would cause any significant problems on a reasonably specified server. Opening the CSV file and reading it one line at a time using fgetcsv() and then presumably doing around 3-5 database queries (is it there? update? insert? delete?) should really not be a problem. I think all recent versions of PHP default to a 128mb memory limit should should be fine. I have a feeling the file_upload_size thing defaults to about 2mb, which may be too small. David. |