Re: servidor

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: ricardo yanguma <ricardo(dot)yanguma(at)gmail(dot)com>
Cc: "Mario Gonzalez ( mario__ )" <gonzalemario(at)gmail(dot)com>, Postgres Español <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: servidor
Date: 2006-10-12 17:23:53
Message-ID: 20061012172353.GE18764@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

ricardo yanguma escribió:
> esta es la consulta
>
> explain update nr_tmp_carga set nr_codest=1
> where nr_tmp_carga.nr_codsubs between 1 and 1
> and nr_tmp_carga.nr_codran between 1 and 1
> and nr_tmp_carga.nr_codfac between 1 and 1

Huh, considera reescribir esto asi:

update nr_tmp_carga set nr_codest=1
where nr_tmp_carga.nr_codsubs = 1
and nr_tmp_carga.nr_codran = 1
and nr_tmp_carga.nr_codfac = 1

Que indices tienes en esa tabla?

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

  • Re: servidor at 2006-10-12 19:20:08 from Mario Gonzalez ( mario__ )

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Mario Gonzalez ( mario__ ) 2006-10-12 19:20:08 Re: servidor
Previous Message ricardo yanguma 2006-10-12 17:17:12 Re: servidor