Re: Performance issues with large amounts of time-series data

From: Hrishikesh (हृषीकेश मेहेंदळे) <hashinclude(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance issues with large amounts of time-series data
Date: 2009-09-01 22:11:50
Message-ID: a7c00d4b0909011511r28b7b3a4s53eaf19007ff2895@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi Tom, Greg,

Thanks for your helpful suggestions - switching the BIGINT to FLOAT
and fixing the postgresql.conf to better match my server configuration
gave me about 30% speedup on the queries.

Because of the fact that my data insert order was almost never the
data retrieval order, I also got a significant (about 3x - 10x)
speedup by CLUSTERing the tables on an index that represented the most
frequent query orders (main_id, timestamp, sub_id, device_id) - the
queries that were taking a few seconds earlier now complete in a few
hundred milliseconds (5s vs. 600ms in some instances).

Thanks Again,
Hrishikesh

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Kevin Kempter 2009-09-02 14:52:30 partition queries hitting all partitions even though check key is specified
Previous Message Wei Yan 2009-09-01 22:01:41 Help: how to speed up query after db server reboot