Re: Too slow

Поиск
Список
Период
Сортировка
От Lee Wu
Тема Re: Too slow
Дата
Msg-id ECAB83AA52BCC043A0E24BBC00001024D2E6B7@mxhq-exch.corp.mxlogic.com
обсуждение исходный текст
Ответ на Too slow  (Sabio - PSQL <slopez_pg@ceroriesgo.co.cr>)
Ответы Re: Too slow  (Sabio - PSQL <slopez_pg@ceroriesgo.co.cr>)
Список pgsql-admin
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

В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Databases there, tables away
Следующее
От: "Chris Hoover"
Дата:
Сообщение: Re: Too slow