Re: idle DB and resources - Mailing list pgsql-general

From Craig Ringer
Subject Re: idle DB and resources
Date
Msg-id 4999824E.60406@postnewspapers.com.au
Whole thread Raw
In response to idle DB and resources  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
List pgsql-general
Ivan Sergio Borgonovo wrote:

> Meanwhile we will have 2 large DB, one of them being nearly idle.
> Is the idle DB going to have any impact on performance?

I'm far from an expert here, but AFAIK it shouldn't have much impact.
That does depend, though, on just how idle it really is, and how much of
it is accessed at a time when it is used.

If you have queries that involve scans of large proportions of the
tables, or require the reading of big indexes, then even infrequent use
of the database will probably cause performance blips in the main
database due to contention for disk I/O, and will probably push data
from the main DB out of cache too, forcing it to be re-read from disk later.

On the other hand, if your queries don't read huge parts of the DB in at
once and you have small, efficient indexes, I imagine you won't notice
it at all.

You might be able to reduce the impact by putting the idle DB (or if
space is a concern, at least its indexes) on a different disk or disk
array. It won't help with contention for cache memory though, and I
don't know if there's anything much to be done about that.

--
Craig Ringer

pgsql-general by date:

Previous
From: Lennin Caro
Date:
Subject: Re: ask: select right(column) ???
Next
From: Scara Maccai
Date:
Subject: Re: left outer join without rows from "left" table