Re: Ayuda sobre updates

From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>
Cc: "Robby Gustabello Cogle" <robbygustabello(at)gmail(dot)com>, "Miguel Panuera" <mpanuera(at)gmail(dot)com>, PostgreSQL <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Ayuda sobre updates
Date: 2007-08-30 23:56:00
Message-ID: c2d9e70e0708301656l241ca62crd8e70f49f89c4b6@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On 8/30/07, Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote:
> Evita sobreescribir los campos que no cambian. En general no habrá
> ninguna diferencia, pero si tienes por ej. un campo de texto de más de
> 2 KB y lo sobreescribes inútilmente, estás provocando un update en la
> tabla TOAST que habría sido innecesario.
>

cierto... siempre olvido esas...

> Creo que puede haber una diferencia si tienes FKs en esas columnas
> también.
>

no creo. si hubieramos solucionado eso, crear triggers que se ejecuten
solo al actualizar ciertas columnas seria sencillo de lograr...

--
Atentamente,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2007-08-31 00:01:39 Re: Ayuda sobre updates
Previous Message Alvaro Herrera 2007-08-30 23:24:45 Re: Ayuda sobre updates