From: Benjamin Arai <me@benjaminarai.com>
To: Benjamin Arai <benjamin@araisoft.com>
Cc: A. Kretschmer <andreas.kretschmer@schollglas.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Problem with large table not using indexes (I think)
Date: Sat, 23 Dec 2006 11:51:36 -0800
Message-ID: <458D88C8.8010702@benjaminarai.com> (raw)
In-Reply-To: <458D867C.5000207@araisoft.com>
References: <458D82D0.5050903@araisoft.com>
<20061223193339.GA8688@a-kretschmer.de>
<458D867C.5000207@araisoft.com>
One more note about my problem, when you run a query on older data in
the table then it work great but if you query newer data then is very slow.
Ex.
SELECT * from my_table WHERE date >=12/1/2005 and date <= 12/1/2006; <- slow
SELECT * from my_table WHERE date >=12/1/2002 and date <= 12/1/2003; <- fast
It just has to do with the new data for some reason.
Benjamin
Benjamin Arai wrote:
> Function Scan on "getTimeSeries" (cost=0.00..12.50 rows=1000
> width=24) (actual time=11065.981..11067.008 rows=262 loops=1)
> Total runtime: 11067.991 ms
> (2 rows)
>
> It is a PL function. Do I need to break it down?
>
> A. Kretschmer wrote:
>> am Sat, dem 23.12.2006, um 11:26:08 -0800 mailte Benjamin Arai
>> folgendes:
>>
>>> because it would literally take over a week to complete. Any help
>>> would be greatly appreciated.
>>>
>>
>> What says an 'explain analyse'?
>>
>>
>> Andreas
>>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
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-admin@postgresql.org
Cc: me@benjaminarai.com, benjamin@araisoft.com, andreas.kretschmer@schollglas.com, pgsql-general@postgresql.org
Subject: Re: Problem with large table not using indexes (I think)
In-Reply-To: <458D88C8.8010702@benjaminarai.com>
References: <458D82D0.5050903@araisoft.com> <20061223193339.GA8688@a-kretschmer.de> <458D867C.5000207@araisoft.com> <458D88C8.8010702@benjaminarai.com>
* 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