From: J.Fernando Moyano <txinete@wanadoo.es>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: very very slow .....
Date: Fri, 6 Apr 2001 02:36:26 +0200
Message-ID: <01040602362600.01608@txino.mikasa.eh> (raw)
In-Reply-To: <14453.986436612@sss.pgh.pa.us>
References: <01040204440001.01615@txino.mikasa.eh>
<01040501053805.01679@txino.mikasa.eh>
<14453.986436612@sss.pgh.pa.us>
El Jueves 05 Abril 2001 04:10, escribiste:
>
> You would probably have better luck if you cast the date restriction
> as a range, for example
>
> where fecha_factura >= '2001-03-01'
> and fecha_factura < '2001-04-01'
True !!!!
It runs 10 times faster !!!!!!!
You are a genius !!!! ;-))
Thanks !!
--
Fernando Moyano
Frase del día:
--------------
Yo antes era vanidoso, pero me cure, y ahora soy perfecto! O:-)
(*) SymeX ==> http://symex.lantik.com
(*) WDBIL ==> http://wdbil.sourceforge.net
(*) Informate sobre LINUX en http://www.linux.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: txinete@wanadoo.es, tgl@sss.pgh.pa.us
Subject: Re: very very slow .....
In-Reply-To: <01040602362600.01608@txino.mikasa.eh>
References: <01040204440001.01615@txino.mikasa.eh> <01040501053805.01679@txino.mikasa.eh> <14453.986436612@sss.pgh.pa.us> <01040602362600.01608@txino.mikasa.eh>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox