pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: vegard.bones@met.no
Cc: pgsql-performance@postgresql.org
Subject: Re: Deteriorating performance when loading large objects
Date: Tue, 25 Nov 2008 08:36:46 -0500
Message-ID: <14976.1227620206@sss.pgh.pa.us> (raw)
In-Reply-To: <63696.85.166.86.82.1227617663.squirrel@webmailsunny.oslo.dnmi.no>
References: <63696.85.166.86.82.1227617663.squirrel@webmailsunny.oslo.dnmi.no>

"=?iso-8859-1?Q?Vegard_B=F8nes?=" <vegard.bones@met.no> writes:
> I have a problem with large objects in postgresql 8.1: The performance of
> loading large objects into a database goes way down after a few days of
> operation.

> I have a cron job kicking in twice a day, which generates and loads around
> 6000 large objects of 3.7MB each. Each night, old data is deleted, so
> there is never more than 24000 large object in the database.

Are you sure you're deleting the large objects themselves (ie,
lo_unlink), and not just deleting some references to them?

A manual "vacuum verbose" on pg_largeobject might be informative.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <14976.1227620206@sss.pgh.pa.us>
Permalink:  ../14976.1227620206@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14976.1227620206@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, vegard.bones@met.no
  Subject: Re: Deteriorating performance when loading large objects
  In-Reply-To: <14976.1227620206@sss.pgh.pa.us>

* 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