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 (Moderator: Dave Greenberg) »
  • Dedupe process hangs on INSERT INTO query
Pages: [1]

Author Topic: Dedupe process hangs on INSERT INTO query  (Read 725 times)

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Dedupe process hangs on INSERT INTO query
April 23, 2012, 02:27:58 pm
I am trying to dedupe a small batch of contacts (about 750, although I have tested this with only 2 contacts in the group as below with the same effect).

MySQL just hangs on the following statement:

Code: [Select]
INSERT INTO dedupe( id1, id2, weight )
SELECT t1.id id1, t2.id id2, 10 weight
FROM civicrm_contact t1
JOIN civicrm_contact t2
USING ( first_name )
WHERE t1.contact_type =  'Individual'
AND t2.contact_type =  'Individual'
AND t1.id < t2.id
AND t1.first_name IS NOT NULL
AND (
t1.id
IN ( 282014, 368873)
OR t2.id
IN ( 282014, 368873 )
)

It will run continuously. Showing in Log_slow_queries as being over an hour before I stop it. Any ideas why?

csmcdermott

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.0.6
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Dedupe process hangs on INSERT INTO query
September 26, 2012, 03:18:20 pm
Did you ever find a solution to this issue? I'm having exactly the same issue and it has me totally stumped!

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: Dedupe process hangs on INSERT INTO query
September 30, 2012, 03:08:37 pm
No, sorry. I haven't looked at it in a while. I may get to look at it again though in the near future.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Dedupe process hangs on INSERT INTO query

This forum was archived on 2017-11-26.