Re: How to store clickmap points?

Поиск
Список
Период
Сортировка
От Ben Chobot
Тема Re: How to store clickmap points?
Дата
Msg-id 8652E284-C5B0-45B6-9E83-9D8E2179C4AC@silentmedia.com
обсуждение исходный текст
Ответ на How to store clickmap points?  (aasat <satriani@veranet.pl>)
Ответы Re: How to store clickmap points?  (aasat <satriani@veranet.pl>)
Список 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 по дате отправления:

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: query by partial timestamp
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [Solved] Corrupt indexes on slave when using pg_bulkload on master