pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ulrich Wisser <ulrich.wisser@relevanttraffic.se>
To: pgsql-performance@postgresql.org
Subject: Need for speed 3
Date: Thu, 01 Sep 2005 15:25:37 +0200
Message-ID: <43170151.90408@relevanttraffic.se> (raw)

Hi again,

first I want to say ***THANK YOU*** for everyone who kindly shared their 
thoughts on my hardware problems. I really appreciate it. I started to 
look for a new server and I am quite sure we'll get a serious hardware 
"update". As suggested by some people I would like now to look closer at 
possible algorithmic improvements.

My application basically imports Apache log files into a Postgres 
database. Every row in the log file gets imported in one of three (raw 
data) tables. My columns are exactly as in the log file. The import is 
run approx. every five minutes. We import about two million rows a month.

Between 30 and 50 users are using the reporting at the same time.

Because reporting became so slow, I did create a reporting table. In 
that table data is aggregated by dropping time (date is preserved), ip, 
referer, user-agent. And although it breaks normalization some data from 
a master table is copied, so no joins are needed anymore.

After every import the data from the current day is deleted from the 
reporting table and recalculated from the raw data table.


Is this description understandable? If so

What do you think of this approach? Are there better ways to do it? Is 
there some literature you recommend reading?

TIA

Ulrich




view thread (6+ messages)  latest in thread

Message-ID: <43170151.90408@relevanttraffic.se>
Permalink:  ../43170151.90408@relevanttraffic.se/
Also on:    postgresql.org/message-id/43170151.90408@relevanttraffic.se

 · 

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: ulrich.wisser@relevanttraffic.se
  Subject: Re: Need for speed 3
  In-Reply-To: <43170151.90408@relevanttraffic.se>

* 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