-----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, <[email protected]>
 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-----
--
TIP 4: No hagas 'kill -9' a postmaster

Responder a