pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sabio - PSQL <slopez_pg@ceroriesgo.co.cr>
To: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: Too slow
Date: Tue, 22 Mar 2005 08:23:07 -0600
Message-ID: <42402A4B.70703@ceroriesgo.co.cr> (raw)

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







view thread (5+ messages)  latest in thread

Message-ID: <42402A4B.70703@ceroriesgo.co.cr>
Permalink:  ../42402A4B.70703@ceroriesgo.co.cr/
Also on:    postgresql.org/message-id/42402A4B.70703@ceroriesgo.co.cr

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: slopez_pg@ceroriesgo.co.cr, pgsql-admin@postgresql.org
  Subject: Re: Too slow
  In-Reply-To: <42402A4B.70703@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