From: Scott Marlowe <scott.marlowe@gmail.com>
To: tls.wydd@free.fr
Cc: DiezelMax <max@nts.biz.ua>
Cc: pgsql-performance@postgresql.org
Subject: Re: Large number of tables slow insert
Date: Sat, 23 Aug 2008 17:49:58 -0600
Message-ID: <dcc563d10808231649k7cc447cwbb8228f2b97c42fa@mail.gmail.com> (raw)
In-Reply-To: <1219520134.48b0668645ce4@imp.free.fr>
References: <1775c5ea0808221841u746862e3h1b721ea82fdb7794@mail.gmail.com>
<48AFE6BB.6040400@nts.biz.ua>
<1219520134.48b0668645ce4@imp.free.fr>
On Sat, Aug 23, 2008 at 1:35 PM, <tls.wydd@free.fr> wrote:
> Actually, I've got another test system with only few sensors (thus few tables)
> and it's working well (<10ms insert) with all the indexes.
> I know it's slowing down my performance but I need them to interogate the big
> tables (each one can reach millions rows with time) really fast.
It's quite likely that on the smaller system the indexes all fit into
memory and only require writes, while on the bigger system they are
too large and have to be read from disk first, then written out.
A useful solution is to remove most of the indexes on the main server,
and set up a slony slave with the extra indexes on it to handle the
reporting queries.
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: scott.marlowe@gmail.com, tls.wydd@free.fr, max@nts.biz.ua
Subject: Re: Large number of tables slow insert
In-Reply-To: <dcc563d10808231649k7cc447cwbb8228f2b97c42fa@mail.gmail.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