I have a rather large table (20M records) that has a column index of 3 and an array column. The array column is updated daily (by adding new values) for all rows. There are also inserts, but not as many as updates.
The data in the array are daily measurements corresponding to three keys, something like this: [[date_id_1, my_value_for_date_1], [date_id_2, my_value_for_date_2]] . It is used to plot these daily values. Let's say I want to visualize the value for the key (a, b, c) over time, I do SELECT values FROM t WHERE a = my_a AND b = my_b AND c = my_c . Then I use the values array to draw the graph.
The performance of updates (which occur once per day) has deteriorated significantly over time.
Using PostgreSQL 8.3.8.
Can you give me any hints on where to look for a solution? It can be anything: from setting some parameters in postgres to moving to another database (I think that a non-relational database is better for this particular table, but I have little experience with them). A.
performance optimization postgresql
ibz Jun 23 '10 at 8:32 2010-06-23 08:32
source share