Re: migración y join de tablas

From: Rafael Martinez <r(dot)m(dot)guerrero(at)usit(dot)uio(dot)no>
To: FRANCISCO JOSE PALAO VILLANUEVA <fjpv_2000(at)yahoo(dot)es>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: migración y join de tablas
Date: 2009-09-24 12:26:08
Message-ID: 4ABB6560.1080303@usit.uio.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rafael Martinez wrote:

> SELECT a.*,b.*
> FROM cabecera a
> INNER JOIN detalles b ON(a.id=b.id AND a.oficina=b.oficina)
> WHERE a.fecha='03/03/2008'
> AND a.oficina=841;
>
> - Que valor tienes en el parametro default_statistics?¿Puedes probar con
> el valor 100?
> - Has ejecutado 'VACUUM VERBOSE ANALYZE' o 'ANALYZE VERBOSE' despues de
> cambiar default_statistics? Esto es muy importante.
>

Y se me olvido, mandanos el output de 'EXPLAIN ANALYZE <consulta>'
despues de hacer estos cambios.

- --
Rafael Martinez, <r(dot)m(dot)guerrero(at)usit(dot)uio(dot)no>
Center for Information Technology Services
University of Oslo, Norway

PGP Public Key: http://folk.uio.no/rafael/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFKu2VfBhuKQurGihQRArtMAJ0SH+xRmBnEyJ4VXIn8tTXL5GzH8QCeIMML
uXgm+qMKg0Kr2NpZWJmGxu8=
=kVDz
-----END PGP SIGNATURE-----

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Ana Smail 2009-09-24 12:49:11 pgdump
Previous Message Rafael Martinez 2009-09-24 12:23:30 Re: migración y join de tablas