Re: get array data with range

Поиск
Список
Период
Сортировка
От CoL
Тема Re: get array data with range
Дата
Msg-id 3C56BE5B.9080509@mportal.hu
обсуждение исходный текст
Ответ на get array data with range  ("Johny Jugianto" <johny.q@rocketmail.com>)
Список pgsql-sql
Hi,

> second question.
> 2. which are better (from speed and size side)?
> i make "one" table with array like this
> TABLE mytable
> mytable_id         |  array_data
> -------------------------------------
> 1                       | {1,2,...,100000}
> 2                       | {1,2,...,100000}
> 3                       | {1,2,...,100000}
> ....
> 
> or like this one, many table but no array
> TABLE mytable_1
> was_array_data
> ----------------
> 1
> 2
> ...
> 100000
if you have only these numbers in array better to use more tables with 
an int,
cause it can be indexed and fast selected.

CoL



В списке pgsql-sql по дате отправления:

Предыдущее
От: "Steve Brett"
Дата:
Сообщение: Re: Index Management
Следующее
От: alla@sergey.com (Alla)
Дата:
Сообщение: What's wrong with this function - "returns setof"