CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Importing 7,000 records in under 4 hours?
Pages: [1]

Author Topic: Importing 7,000 records in under 4 hours?  (Read 3950 times)

minorscience

  • Guest
Importing 7,000 records in under 4 hours?
January 26, 2009, 06:28:33 pm
I'm unable to get my installation to process 7,000 records in a reasonable time frame. I've observed all of the tips in the FAQ/Import post, e.g., bumped up my server's PHP memory limit, script execution time, etc. Only thing that I can think of is that my installation isn't tuned out of the box and can't process input quickly enough.

I am able to get through to the field mapping table. Upon clicking Continue, browser hangs waiting for a response from server. I have successfully imported 100 records into my installation and that took 2-3 minutes. That said, roughly put, 7,000 records imported into my installation would take 3-4 hours.

I've run 7,000 records containing around 40 fields through drupal.demo.civicrm.org. The demo installation performed the field checking and created the Import Error csv very quickly, in just a few minutes. I've also successfully imported the same records on a local development box in my office. Also only took a few minutes.

Firebug isn't showing anything in the console except the usual GET/POST messages. From what I can tell the file has successfully uploaded at /sites/default/files/civicrm/upload though it obviously hasn't been parsed and handed off to the CiviCRM tables. Any thoughts?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Importing 7,000 records in under 4 hours?
January 26, 2009, 06:40:40 pm

whats your hosting environment? if you are on shared hosting, you might want to consider upgrading to a better plan, or  spending the 3-4 hours needed to import that number of records. we recommend the former (upgrading :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

minorscience

  • Guest
Re: Importing 7,000 records in under 4 hours?
January 26, 2009, 07:30:49 pm
I'm on virtual dedicated/Virtuozzo box at media temple. Pretty decent as these things go. I've got 1.5 gigs of RAM, more than adequate throughput, and plenty of CPU. If it's a resource issue, would recommend moving to dedicated hardware? Seems like overkill to me but I'm open to any/all ideas.

Is there any way to console into Drupal and see where things are failing or whether the request is even hitting the script?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Importing 7,000 records in under 4 hours?
January 26, 2009, 08:39:39 pm

whats the load on the box when doing the import? kinda wierd that it takes a few minutes for all 7K records on your home/office whereas it takes a few minutes for 100 records on your hosting providers machine

r u running the same version of civicrm? i assume its 2.1.4

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

minorscience

  • Guest
Re: Importing 7,000 records in under 4 hours?
January 26, 2009, 09:24:38 pm
2.1.4 yes.

Erm...CPU load on the virtual box is around 75%?   

My local box is just a Mac mini running 10.5.6.

???

Guess I'll let it run overnight and see what happens.

Seems like this should be a pretty routine operation.

minorscience

  • Guest
Re: Importing 7,000 records in under 4 hours?
January 27, 2009, 07:59:09 am
Quick bump on this unresolved issue. It looks like the csv makes it to /sites/default/files/civicrm/upload. Also, an errors file is also produced. I reckon this is not directly a CiviCRM issue, as I am unable to reproduce it on the demo site or my local box. All the same, any thoughts on this issue would be appreciated, especially whether it is simply a CPU load issue.



petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Importing 7,000 records in under 4 hours?
January 27, 2009, 10:51:31 pm
Only asking as it has been a problem in past for me - but I have found imports using Safari more reliable that with Firefox. I have no idea why. But it helps.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Importing 7,000 records in under 4 hours?
February 06, 2009, 02:08:07 pm
Today I imported around 80k contacts in CiviCRM v2.2, and it took me around 70 mins.

Kurund
Found this reply helpful? Support CiviCRM

dewachen

  • Guest
Re: Importing 7,000 records in under 4 hours?
February 20, 2009, 04:21:30 pm
I would love to hear more about this issue, and resolutions.

We are on a dedicated server, and are running 2.0.2

I have been uploading data, started with about 25000 contributions with org and ind contacts. When I started uploading i could do 1000 contact records under a minute each upload, usually around 30 seconds... it seems once I hit the 30-40k contact records it has just started slowing down incredibly.

When an 1000 record/24 column  upload started hitting 3+ minutes, I broke the file size in half to 500, but it was almost as slow at 2.5 minutes. I keep pluygging along and the 500 upload is now taking over 4 minutes, when just yesterday I could do 1000 in less than that. I have over 125000 records to upload so Im about half way, my fear is Im going to have to keep reducing the file size to keep from timing out.

Any thoughts?



Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Importing 7,000 records in under 4 hours?
February 20, 2009, 05:31:37 pm

I would consider upgrading to 2.2. There were significant improvements to dedupe and other functionality that sped the process

At this stage we are no longer supporting 2.0

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

dewachen

  • Guest
Re: Importing 7,000 records in under 4 hours?
February 20, 2009, 09:05:47 pm
Thanks for the help, thats good to know. We have quite a few more instances similar to this to do too.

John

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: Importing 7,000 records in under 4 hours?
March 24, 2009, 10:14:25 am
just a reminder
http://wiki.civicrm.org/confluence/display/CRMDOC/Speeding+up+Mysql
has some settings that really helped me

jamie

  • I post occasionally
  • **
  • Posts: 95
  • Karma: 6
Re: Importing 7,000 records in under 4 hours?
April 15, 2009, 07:44:18 am
We run virtual servers (using both xen and vservers) and have found disk through put to often be an issue. Given that importing into a database is disk i/o heavy, it might be something worth looking at.

While doing the import on a linux machine, you can run:

vmstat 1

There's a lot of numbers, but keeping track of the second column (number of blocked process due to input/output) could be a clue. You can also run top and pay attention to the percent of time your CPU is in the Wait state (it's also refers to disk i/o).

I raise this issue because even if you have a dedicated virtual server, that server is probably sharing the same disk with many other virtual servers. On the other hand, importing on your desktop computer, even if it's a slow CPU, might have dedicated access to your disk.

jamie



Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Importing 7,000 records in under 4 hours?

This forum was archived on 2017-11-26.