#1  
Old 2005-11-12, 10:46 PM
Sugar Community Member
 
Join Date: Aug 2004
Posts: 108
Default CSV import - record limit

I am trying to import about 8000 records in csv format but only about 2000-2500 seem to go in at a time. I am aware of the file size and max upload limits in php.ini but as the server is also processing email these are set to 50MB, and memory size limit is 30MB. I have tons more data to process so any chance of a fix?

What gives?

Thanks
Reply With Quote
  #2  
Old 2005-11-14, 12:00 AM
Sugar Community Member
 
Join Date: Jul 2005
Posts: 51
Default Re: CSV import - record limit

Does it give any error?

Or does it just end up at a blank page?

I have a similar issue.
Reply With Quote
  #3  
Old 2005-11-14, 12:31 AM
longreach
Guest
 
Posts: n/a
Default Re: CSV import - record limit

It is apparently some kind of memory leak. All you can do is max out the memory available to the session, and then identify the biggest chunk size you can process, and then chunk it up. Pretty ugly, but I know of no one who has it working any better than this.
Reply With Quote
  #4  
Old 2005-11-14, 04:22 PM
Junior Member
 
Join Date: Nov 2005
Posts: 2
Question Re: CSV import - record limit

Has there been any change or modification made to address this limitation?
Reply With Quote
  #5  
Old 2005-11-14, 11:41 PM
Sugar Community Member
 
Join Date: Aug 2004
Posts: 108
Default Re: CSV import - record limit

Quote:
Originally Posted by jmaxwell
Does it give any error?

Or does it just end up at a blank page?

I have a similar issue.

Nope the import 'finishes' without any error, it's just that not all the records have been brought in.
Reply With Quote
  #6  
Old 2005-11-15, 03:20 AM
Sugar Community Member
 
Join Date: Jul 2005
Posts: 51
Default Re: CSV import - record limit

That is odd.

I have heard that you need to cut up the import.

I would look at using phpMyAdmin to bulk load into the database.
Reply With Quote
  #7  
Old 2005-11-15, 04:10 AM
longreach
Guest
 
Posts: n/a
Default Re: CSV import - record limit

Nope - you can't do that for a lot of the data - as the record ID fields that refer to other tables need to be generated by the Sugar code.

Last edited by longreach; 2005-11-15 at 07:09 PM.
Reply With Quote
  #8  
Old 2005-11-15, 07:11 PM
longreach
Guest
 
Posts: n/a
Default Re: CSV import - record limit

With maximum memory allocations, you can often import about 2-300 objects at a time - that seems to be about the limit. 700 is a more normal limit with regular memory allocation.
Reply With Quote
  #9  
Old 2005-11-16, 04:18 AM
Sugar Community Member
 
Join Date: Apr 2005
Posts: 30
Default Re: CSV import - record limit

Ran into the same problem with 30,000 records.

Sugar's import is a real memory hog and it needs time to process. You need to bump up your max_execution_time, max_input_time, and memory_limit settings *significantly*...

So, in your php.ini try this:
max_execution_time = 3000 ; Maximum execution time of each script, in seconds
max_input_time = 6000 ; Maximum amount of time each script may spend parsing request data
memory_limit = 386M

Even with *these* settings - I still had to break up my import into 5,000 record chunks...

Memory is a major player in this. In other words, once I put my execution_time and input_time to these levels, any further increase didn't help. However, memory *did*. So, if you can allocate a gig of ram, I'll be you'll be able to import your 8,000 records in one shot.

-John

www.progresspays.com
Reply With Quote
  #10  
Old 2006-10-30, 06:23 AM
Member
 
Join Date: Oct 2006
Posts: 6
Default Re: CSV import - record limit

Hi!

I'm encoutering similar problems. I noticed an entry of:

'import_max_execution_time' => 3600

in the config.php file for sugar. What is this config value for?

and how does this interact with the 'max_' values in php.ini?

Thanks!

-TC
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT. The time now is 09:59 AM.


Powered by: vBulletin
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0
SourceForge.net Logo