From: | John Smith <john_smith_45678(at)yahoo(dot)com> |
---|---|
To: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: UPDATE slow |
Date: | 2003-02-04 23:20:58 |
Message-ID: | 20030204232058.2431.qmail@web40707.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
That works - updates on foo take about 1.4 seconds. I dropped all the indexes and fk's on stats and updates there take about 2.8 seconds. These are on the cygwin machine.
Looking at the tables, foo doesn't have any modifiers for the columns (stats does - not null default 0).
John
Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> wrote:On Tue, 4 Feb 2003, John Smith wrote:
> Think that makes sense ;). However, I just dropped all the foreign key
> constraints on stats and there wasn't any speed increase in the query.
> I've also tried dropping the index on clicks (no speed-up there
> either).
Can you duplicate it with a new table?
Something like:
create table foo as select * from stats;
update foo set clicks=3344;
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
From | Date | Subject | |
---|---|---|---|
Next Message | scott.marlowe | 2003-02-04 23:28:47 | Re: UPDATE slow |
Previous Message | Tom Lane | 2003-02-04 23:15:03 | Re: Rules with "Where" Referencing Other Tables |