pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Billy extyeightysix <exty86@gmail.com>
To: Postgresql Performance list <pgsql-performance@postgresql.org>
Subject: Re: optimized counting of web statistics
Date: Tue, 28 Jun 2005 13:43:46 -0700
Message-ID: <22455e7050628134348a74d7c@mail.gmail.com> (raw)
In-Reply-To: <22455e7050628133978b17cd4@mail.gmail.com>
References: <6EE64EF3AB31D5448D0007DD34EEB3415C2C08@Herge.rcsinc.local>
	<22455e7050628133978b17cd4@mail.gmail.com>

> The bottleneck in the
> whole process is actually counting each data point (how many times a
> url was visited, or how many times a url referred the user to the
> website). So more specifically I am wondering if there is way to store
> and retrieve the data such that it speeds up the counting of the
> statistics.

This is misleading, the counting is being done by perl.  so what is
happening is that I am locating all of the rows via a cursor and then
calculating the stats using perl hashes.  no counting is being in the
DB.  maybe it would be much faster to count in the db somehow?


exty



view thread (5+ messages)  latest in thread

Message-ID: <22455e7050628134348a74d7c@mail.gmail.com>
Permalink:  ../22455e7050628134348a74d7c@mail.gmail.com/
Also on:    postgresql.org/message-id/22455e7050628134348a74d7c@mail.gmail.com

 · 

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: exty86@gmail.com
  Subject: Re: optimized counting of web statistics
  In-Reply-To: <22455e7050628134348a74d7c@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