Re: How to store clickmap points?

Поиск
Список
Период
Сортировка
От aasat
Тема Re: How to store clickmap points?
Дата
Msg-id 1358415369258-5740725.post@n5.nabble.com
обсуждение исходный текст
Ответ на Re: How to store clickmap points?  (Shane Spencer <shane@bogomip.com>)
Список 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 по дате отправления:

Предыдущее
От: Devrim GÜNDÜZ
Дата:
Сообщение: Re: Determine if an index is a B-tree, GIST, or something else?
Следующее
От: classical_89
Дата:
Сообщение: Logging affected rows