From: kdecapite <decap...@creationsite.com>
Date: Wed, 26 Mar 2008 16:39:06 -0700 (PDT)
Local: Wed, Mar 26 2008 7:39 pm
Subject: Re: Run query in background while showing "Please wait"
What I have is an ImportContact model which is simply a table
containing basic information about a person (name, email, address, etc). This table gets populated either from a standard website "Contact Us" form or by my client manually importing a CSV file. Now, once this ImportContact model has new records in it, I want to display a list of *potential* duplicates by various criteria. The "master" contacts model is simply called Contact and contains 30,000+ records. The Contact model does NOT include addresses, there is a separate Address model for this (again, with 30,000+ records). The reason I can't have the database do the searching for me is
For example this "duplicate search" criteria works great using Cake:
- Show potential duplicates based on field `email1`
However, this example does NOT work:
- Show potential duplicates based on fields `fn` and `ln` (a person's
So what I did was query ALL records from both ImportContact and
I'm just giving a brief overview here and can provide specific code if
- Kevin
On Mar 26, 4:14 pm, jonknee <m...@jongales.com> wrote:
> > I have a CakePHP CRM application with 30,000+ contact records. Each
> > Contact hasMany Address records. One feature of my app is to allow my > > client to search for duplicate entries within the contacts table > > before importing new contacts. In short, I am querying the entire > > Contact table and LEFT JOINing with the Address table. I store the > > result set into an array and then use PHP's array functions to filter > > potential duplicates from a "pending contacts" table. > What exactly are you doing? It can probably be handled pretty quickly
> I always thought the please wait while we search messages were either
> I have used a PHP app with a valid reason for it, it was a mailing
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||