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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Mass deletes.
Pages: [1]

Author Topic: Mass deletes.  (Read 633 times)

SweetTooth

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Mass deletes.
November 08, 2010, 05:04:27 pm

Hello all!

We're running civicrm 3.2.1 as a pilot and we have a lot of imported data which we wish to permanently delete and start over with.

Since the system is a live pilot, we also have a lot of good data which we would like to retain.

The trouble is, that civicrm takes an awfully long time to delete the data and our tests show that it appears to be CPU intensive, for that matter, on our system at least, we always appear to be maxing out on CPU and one of my techies (at least one who's less of an accidental one than me!) believes that civicrm isn't that efficient on bulk operations, with a deletion of 250,000 records taking at the very minimum, 4 days!

Can someone help me out or point me in the right direction please?

Thanks!


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: Mass deletes.
November 08, 2010, 08:12:36 pm

1. how do u differentiate between "good" data and "test" data? doing 250K manually does not seem feasible

2. might want to try using the API and doing multiple searches / deletes. Might be easier to delete contacts in batches, since most of the contact deletion is handled by the database (via cascaded deletes). Note that you will need PHP/MySQL skills to do it this way

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

SweetTooth

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: Mass deletes.
November 13, 2010, 05:58:56 am
Quote from: Donald Lobo on November 08, 2010, 08:12:36 pm

1. how do u differentiate between "good" data and "test" data? doing 250K manually does not seem feasible

2. might want to try using the API and doing multiple searches / deletes. Might be easier to delete contacts in batches, since most of the contact deletion is handled by the database (via cascaded deletes). Note that you will need PHP/MySQL skills to do it this way

lobo

Lobo, I can easily get the bad data into a smart group...it's already been put into the wastebasket...so I have (or had!) 260,000 records in the wastebasket. We have a tech who has knocked up some SQL and we're deleting in batches of 1000, so no problem there. Thanks!


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Mass deletes.

This forum was archived on 2017-11-26.