From: | "Silvio Quadri" <silvioq(at)gmail(dot)com> |
---|---|
To: | pgsql-es-ayuda-postgresql(dot)org(at)postgresql(dot)org |
Subject: | Re: Consulta, a priori, sencilla |
Date: | 2008-12-30 11:10:30 |
Message-ID: | 61dc71dc0812300310t23d5c1fal6b90e7dcb20e991b@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
El día 29 de diciembre de 2008 14:57, "I.N.T. - Programación"
<dpto(dot)programacion(at)grupo-int(dot)com> escribió:
> enviosdfa=# EXPLAIN ANALYZE SELECT * FROM envios WHERE apellidos LIKE
> 'BODEGAS MURUA%' ORDER BY apellidos;
> QUERY
> PLAN
> ---------------------------------------------------------------------------------------------------------------------
> Sort (cost=144384.87..144384.88 rows=1 width=650) (actual
> time=34724.021..34724.040 rows=36 loops=1)
> Sort Key: apellidos
> -> Seq Scan on envios (cost=0.00..144384.86 rows=1 width=650) (actual
> time=1691.879..34723.437 rows=36 loops=1)
> Filter: (apellidos ~~ 'BODEGAS MURUA%'::text)
> Total runtime: 34724.121 ms
> (5 filas)
Usá :
select * from envios where apellidos between 'BODEGAS MURUA' and
'BODEGAS MURUAzzzzzz'
Toma mejor los índices.
Silvio
--
Silvio Quadri
From | Date | Subject | |
---|---|---|---|
Next Message | Raúl Andrés Duque Murillo | 2008-12-30 11:21:50 | Re: [Fwd: Re: Consulta, a priori, sencilla] |
Previous Message | I.N.T. - Programación | 2008-12-30 11:03:27 | [Fwd: Re: Consulta, a priori, sencilla] |