Re: [PERFORM] slow update on 1M rows (worse with indexes)

2007-02-22 Thread ismo . tuononen
how about saying: lock table versions_9d in EXCLUSIVE mode; UPDATE versions_9d SET flag=2; commit; Ismo On Thu, 22 Feb 2007, Gabriel Biberian wrote: > Hello, > > I experience significant performance issues with postgresql and updates. > I have a table which contains ~1M rows. > Layout: > TOTO

Re: [PERFORM] slow update on 1M rows (worse with indexes)

2007-02-22 Thread Joshua D. Drake
n i tried adding an index to the table on the column date (int) that > stores unix timestamps. > TOTO=# CREATE INDEX versions_index ON versions_9d (date); > (-60M) disk space goes down on index creation > [EMAIL PROTECTED]:~$ time psql TOTO -c "UPDATE versions_9d SET flag=9" > UPDATE 976009 > real

Re: [PERFORM] slow update on 1M rows (worse with indexes)

2007-02-22 Thread Steinar H. Gunderson
On Thu, Feb 22, 2007 at 07:11:42PM +0100, Gabriel Biberian wrote: > Create a new DB and load a dump of the above database with 976009 rows, > then i perform updates on the whole table. I recorded the time taken > for each full update and the amount of extra disk space used. Each > consecutive

[PERFORM] slow update on 1M rows (worse with indexes)

2007-02-22 Thread Gabriel Biberian
Hello, I experience significant performance issues with postgresql and updates. I have a table which contains ~1M rows. Layout: TOTO=# \d versions_9d; Table «public.versions_9d» Colonne | Type | Modificateurs ++--- h