Re: How to store clickmap points? - Mailing list pgsql-general

From Ben Chobot
Subject Re: How to store clickmap points?
Date
Msg-id 8652E284-C5B0-45B6-9E83-9D8E2179C4AC@silentmedia.com
Whole thread Raw
In response to How to store clickmap points?  (aasat <satriani@veranet.pl>)
Responses Re: How to store clickmap points?  (aasat <satriani@veranet.pl>)
List 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
possiblesavings. 

pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: query by partial timestamp
Next
From: Tom Lane
Date:
Subject: Re: [Solved] Corrupt indexes on slave when using pg_bulkload on master