pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Hartmann <andreas@apache.org>
To: pgsql-performance@postgresql.org
Subject: Re: Less rows -> better performance?
Date: Mon, 21 Jul 2008 13:25:30 +0200
Message-ID: <4884722A.1000405@apache.org> (raw)
In-Reply-To: <48846DA3.2090308@archonet.com>
References: <48846A02.7090702@apache.org>
	<48846DA3.2090308@archonet.com>

Richard, thanks for your reply!

Richard Huxton schrieb:
> Andreas Hartmann wrote:
>> Dear PostgreSQL community,
>>
>> first some info about our application:
>>
>> - Online course directory for a University
>> - Amount of data: complete dump is 27 MB
>> - Semester is part of primary key in each table
>> - Data for approx. 10 semesters stored in the DB
>> - Read-only access from web application (JDBC)
>>
>> Our client has asked us if the performance of the application could be
>> improved by moving the data from previous years to a separate "archive"
>> application. 
> 
> If you had 27GB of data maybe, but you've only got 27MB - that's 
> presumably all sitting in memory.

Here's some info about the actual amount of data:

SELECT pg_database.datname,
pg_size_pretty(pg_database_size(pg_database.datname)) AS size
FROM pg_database where pg_database.datname = 'vvz_live_1';

     datname    |  size
---------------+---------
  vvz_live_1    | 2565 MB

I wonder why the actual size is so much bigger than the data-only dump - 
is this because of index data etc.?


> What in particular is slow?

There's no particular bottleneck (at least that we're aware of). During 
the first couple of days after the beginning of the semester the 
application request processing tends to slow down due to the high load 
(many students assemble their schedule). The customer upgraded the 
hardware (which already helped a lot), but they asked us to find further 
approaches to performance optimiziation.

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01



view thread (12+ messages)  latest in thread

Message-ID: <4884722A.1000405@apache.org>
Permalink:  ../4884722A.1000405@apache.org/
Also on:    postgresql.org/message-id/4884722A.1000405@apache.org

 · 

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: andreas@apache.org
  Subject: Re: Less rows -> better performance?
  In-Reply-To: <4884722A.1000405@apache.org>

* 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