Subject Re: [firebird-support] removing duplicate records
Author alan davies
Hi Arno & Alexandre
Thanks again - adding an index resolved the problem as you said. 5 seconds
and 60,000+ duplicate records deleted later and the world is a much
brighter place !!!
I have created an SP and can now use "execute
deletedupe(:tablename,:whichfield) against any table.
Thanks again
Regards
Alan
At 21:26 01/07/2004, you wrote:

>Hi,
>
> > Arno - Thanks for the advice, but this does not work. I get the sql
> > hourglass and windows task manager shows cpu at 100% with ibexpert not
> > responding. All I can do is end the task (this is the same on another
> > machine trying ibconsole) because the system is unresponsive. At 08:07
> > 30/06/2004, you wrote:
>
>It should work, but while you did not had a index on Weigh_Code (as
>Alexandre already suggested) it was probably damn slow :-) Prepare first the
>query and look at the PLAN. Without an index on Weigh_Code you'll see twice
>NATURAL.
>
>Regards,
>Arno Brinkman
>ABVisie
>
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>Firebird open source database (based on IB-OE) with many SQL-99 features :
> http://www.firebirdsql.org
> http://www.firebirdsql.info
> http://www.fingerbird.de/
> http://www.comunidade-firebird.org/
>
>Support list for Interbase and Firebird users :
>firebird-support@yahoogroups.com
>
>Nederlandse firebird nieuwsgroep :
>news://80.126.130.81
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>--
>Incoming mail is certified Virus Free.
>Checked by AVG Anti-Virus (http://www.grisoft.com).
>Version: 7.0.253 / Virus Database: 263.3.8 - Release Date: 30/06/2004

Alan J Davies
Aldis
Tel: +44(0)1926 842069
Fax: +44(0)1926 843755


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.253 / Virus Database: 263.3.8 - Release Date: 30/06/2004