From: Sabio - PSQL <slopez_pg@ceroriesgo.co.cr>
To: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: Re: Too slow
Date: Tue, 22 Mar 2005 12:55:01 -0600
Message-ID: <42406A05.6020008@ceroriesgo.co.cr> (raw)
In-Reply-To: <ECAB83AA52BCC043A0E24BBC00001024D2E6B7@mxhq-exch.corp.mxlogic.com>
References: <ECAB83AA52BCC043A0E24BBC00001024D2E6B7@mxhq-exch.corp.mxlogic.com>
PG version = 8.0 over Linux Fedora Core 3
PostgreSQL was compiled from source
Lee Wu wrote:
>PG version?
>
>Maybe worth to try NOT EXISTS instead of NOT IN
>
>-----Original Message-----
>From: pgsql-admin-owner@postgresql.org
>[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Sabio - PSQL
>Sent: Tuesday, March 22, 2005 7:23 AM
>To: PostgreSQL Admin
>Subject: [ADMIN] Too slow
>
>How can I improve speed on my queries. For example this query takes one
>day executing itself and it has not finalized !!!
>"create table tmp_partes as select * from partes where identificacion
>not in (select cedula from sujetos)"
>
>partes have 1888000 rows, an index on identificacion
>sujetos have 5500000 rows, an index on cedula
>
>
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster
>
>
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: slopez_pg@ceroriesgo.co.cr
Subject: Re: Too slow
In-Reply-To: <42406A05.6020008@ceroriesgo.co.cr>
References: <ECAB83AA52BCC043A0E24BBC00001024D2E6B7@mxhq-exch.corp.mxlogic.com> <42406A05.6020008@ceroriesgo.co.cr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox