Re: How to store clickmap points?

From: Ben Chobot <bench(at)silentmedia(dot)com>
To: aasat <satriani(at)veranet(dot)pl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to store clickmap points?
Date: 2013-01-09 21:08:02
Message-ID: 8652E284-C5B0-45B6-9E83-9D8E2179C4AC@silentmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Jan 8, 2013, at 2:12 AM, aasat wrote:

> Hi,
>
> I want to store clickmap points (X, Y and hits value) for website
>
> I currently have table like this
>
> CREATE TABLE clickmap (
> page_id integer,
> date date,
> x smallint,
> y smallint,
> hits integer
> )
>
> But this generated about 1M rows per day.
>
> Can Postgres have better method to store this data? I also have the
> possibility to update hits value for point

Instead of storing x/y, have you considered referencing a region of pixels? The bigger the region, the larger your possible savings.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2013-01-09 21:33:38 Re: How to store clickmap points?
Previous Message wschwurack 2013-01-09 19:50:15 Re: Error: absolute path not allowed