Re: How to store clickmap points?

From: aasat <satriani(at)veranet(dot)pl>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to store clickmap points?
Date: 2013-01-17 09:36:09
Message-ID: 1358415369258-5740725.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I finally store points in structure with arrays, and pack it once at day.

create type t_point as (
x smallint,
y smallint,
hits integer
);

CREATE TABLE clickmap (
page_id integer,
date date,
points t_point[]
);

This method save 6x more space than previous

Thanks for all!

--
View this message in context: http://postgresql.1045698.n5.nabble.com/How-to-store-clickmap-points-tp5739121p5740725.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2013-01-17 09:49:19 Re: String comparison and the SQL standard
Previous Message Albe Laurenz 2013-01-17 09:25:57 String comparison and the SQL standard