MINOR: make BulkLoader::load() get a memory_limit for ini_set, default is 512M.

MINOR: increase the crm import memory_limit to 2048M.
MINOR: Make FirstName and Surname of Member table be indexed.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@71706 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Normann Lou 2009-02-11 20:54:43 +00:00 committed by Sam Minnee
parent 7fca5c4a6e
commit c799947171

View File

@ -128,9 +128,9 @@ abstract class BulkLoader extends ViewableData {
*
* @return BulkLoader_Result See {@link self::processAll()}
*/
public function load($filepath) {
public function load($filepath, $memory_limit='512M') {
ini_set('max_execution_time', 3600);
ini_set('memory_limit', '512M');
ini_set('memory_limit', $memory_limit);
return $this->processAll($filepath);
}