Changeset 57336
- Timestamp:
- 03/07/08 15:51:56 (2 months ago)
- Location:
- modules/marketdemandmap/trunk/code/controller
- Files:
-
- 2 modified
-
DemandMap.php (modified) (1 diff)
-
SupplyImporter.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modules/marketdemandmap/trunk/code/controller/DemandMap.php
r57000 r57336 71 71 parent::init(); 72 72 73 // set max_allowed_packet to 32MB to allow for large binary imports 74 DB::query('SET GLOBAL max_allowed_packet=32*1024*1024;'); 75 73 76 if(empty(DemandMap::$google_api_key)) user_error('Please provide a Google Maps API Key', E_USER_ERROR); 74 77 -
modules/marketdemandmap/trunk/code/controller/SupplyImporter.php
r57035 r57336 87 87 */ 88 88 function doUpload($data, $form) { 89 set_time_limit(360); 89 // 10 minutes and 700MB or PHP memory should be enough... 90 set_time_limit(60*10); 90 91 ini_set('memory_limit', '700M'); 91 92 93 // set max_allowed_packet to 32MB to allow for large binary imports 94 DB::query('SET GLOBAL max_allowed_packet=32*1024*1024;'); 95 92 96 $fileSHP = new File(); 93 97 $fileSHP->loadUploaded($_FILES['_ShapeFileSHP'], $this->tmpFolder); … … 133 137 $updateCount = 0; 134 138 $ignoredCount = 0; 135 139 136 140 for($RECID=0; $RECID < $shp->dbf->dbf_num_rec; $RECID++) { 137 141 // HACK 2008-06-18 by Ingo Schommer: always use first array element
