Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Is there a faster/better way to do this?

Re: Is there a faster/better way to do this?

From: Alan <alanshein_at_erols.com>
Date: Wed, 3 Apr 2002 15:15:39 -0500
Message-ID: <a8fnnl$rsvks$1@ID-114862.news.dfncis.de>


Post your code so we know what the heck is going on. Also, which columns are indexed? Also, are your indexes on a different physical drive than your data?

"Paul" <f1fteen_at_hotmail.com> wrote in message news:7b7286ec.0204031127.3c2172e6_at_posting.google.com...
> Hi all,
>
> I have a puzzle for all you performance/tuning gurus out there!
>
> I have a table with around 4 million records in it called CUSTOMERS.
>
> Each record represents a customer with many columns that hold things
> like forename, surname, address, post code, telephone number etc.
>
> The customer records have come from many different sources and as a
> result, there are in most cases, many customer records representing
> only one actual "real life" customer.
>
> What I am trying to do is write a routine that will group together
> records that are likely to be the same customer.
>
> The way I have set about this is to write an SQL statement that
> SELECTs across the whole CUSTOMERS table (4 million records) using the
> GROUP BY clause on 7 key columns. The results of this are then
> inserted into a MATCHED table for all groups of 2 or more records and
> flagged as match type "1" (best).
>
> This is then repeated, but this time the GROUP BY is on only 6 of the
> above key columns. These results are stored in the MATCHED table as
> match type "2".
>
> This is again repeated using GROUP BY on 5/4/3 key fields.
>
> The above method works OK, the only problem is that it takes a very
> long time to run - around 20 hours!!!
>
> So, my question is, is this the best way to do this, or is there a
> more efficient way to code this that will improve speed?
>
> I am running this on Oracle 8i/Solaris platform.
>
> Thanks in advance for any help.
>
> John.
Received on Wed Apr 03 2002 - 14:15:39 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US