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) »
  • Find an merge results order
Pages: [1]

Author Topic: Find an merge results order  (Read 1409 times)

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Find an merge results order
November 06, 2009, 09:15:15 am
I get different lists ( or order of lists) when clicking 'Use Rule' under Find and Merge.

Is this a bug or is some other logic at work :)

alanski

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: Find an merge results order
November 06, 2009, 09:27:55 am

can u check if the contents of the lists are the same for all invocation of the same rule?

the order can potentially be explained as a mysql temp table creation and select statement where there are multiple matches on the same combined weight

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

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Find an merge results order
November 07, 2009, 02:45:08 am
Yes they appear to be identical but in no specific order.

I made the individual rule weights unqiue and bingo - same order each time.

cheers

alanski

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Find an merge results order
November 07, 2009, 03:42:46 am
Actually I lied.
It only works for one rule, other rules are still in error.

Does temp table you mentioned need dropping or is there something else going on?

alanski

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: Find an merge results order
November 07, 2009, 07:19:31 am

if the contents are the same, why does the order matter?

You can put an additional ORDER clause in:

CRM/Dedupe/BAO/RuleGroup.php, function thresholdQuery

lobo
« Last Edit: November 07, 2009, 07:25:04 am by Donald 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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Find an merge results order

This forum was archived on 2017-11-26.