pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Pierre-Frédéric Caillaud <lists@boutiquenumerique.com>
To: Rod Taylor <rbt@rbt.ca>
To: Valerie Schneider DSI/DEV <Valerie.Schneider@meteo.fr>
Cc: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: Tuning queries on large database
Date: Wed, 04 Aug 2004 17:50:56 +0200
Message-ID: <opsb7sy618cq72hf@musicbox> (raw)
In-Reply-To: <1091625999.58593.47.camel@jester>
References: <200408041244.i74CihO19344@mu.meteo.fr>
<1091625999.58593.47.camel@jester>
>> not so bad for oracle. What about for PG ? How data is stored
I agree with the datatype issue. Smallint, bigint, integer... add a
constraint...
Also the way order of the records in the database is very important. As
you seem to have a very large static population in your table, you should
insert it, ordered by your favourite selection index (looks like it's
poste).
Also, you have a lot of static data which pollutes your table. Why not
create two tables, one for the current year, and one for all the past
years. Use a view to present a merged view.
view thread (15+ messages) latest in thread
Message-ID: <opsb7sy618cq72hf@musicbox> Permalink: ../opsb7sy618cq72hf@musicbox/ Also on: postgresql.org/message-id/opsb7sy618cq72hf@musicbox ·
reply
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 using the --to and --cc options: reply via email To: pgsql-performance@postgresql.org Cc: lists@boutiquenumerique.com, rbt@rbt.ca, Valerie.Schneider@meteo.fr Subject: Re: Tuning queries on large database In-Reply-To: <opsb7sy618cq72hf@musicbox> * 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