Re: [PERFORM] Postgresql - performance of using array in big database

2012-08-08 Thread Ondrej Ivanič
Hi, On 3 August 2012 19:14, wrote: > I want to add to table "Item" a column "a_elements" (array type of big > integers) Every record would have not more than 50-60 elements in this > column. > After that i would create index GIN on this column and typical select should > look like this: > select

Re: [PERFORM] Postgresql - performance of using array in big database

2012-08-07 Thread Craig Ringer
On 08/03/2012 05:14 PM, robertha...@o2.pl wrote: > It is read-only table so every integer column have an index. First tip: Define the table without the indexes. INSERT your data, and only after it is inserted create your indexes. Similarly, if you're making huge changes to the table you shoul

[PERFORM] Postgresql - performance of using array in big database

2012-08-07 Thread roberthanco
Hello Let say we have a table with 6 million records. There are 16 integer columns and few text column. It is read-only table so every integer column have an index. Every record is around 50-60 bytes. The table name is "Item" The server is: 12 GB RAM, 1,5 TB SATA, 4 CORES. All server for postgres