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

From aasat
Subject Re: How to store clickmap points?
Date
Msg-id 1358415369258-5740725.post@n5.nabble.com
Whole thread Raw
In response to Re: How to store clickmap points?  (Shane Spencer <shane@bogomip.com>)
List 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.


pgsql-general by date:

Previous
From: Devrim GÜNDÜZ
Date:
Subject: Re: Determine if an index is a B-tree, GIST, or something else?
Next
From: classical_89
Date:
Subject: Logging affected rows