followup to SELECT/INSERT problem

From: Jim Mercer <jim(at)reptiles(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: followup to SELECT/INSERT problem
Date: 2000-06-23 14:49:28
Message-ID: 20000623104927.H24735@reptiles.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


ok, so i decided to run a test with just the one element of my pipeline.

the process does:

BEGIN WORK;
loop
read stdin
if changes
UPDATE table1 SET ... WHERE KEY = ...;
print to stdout
END WORK;

now i fire up:
$ cat file.dat | adjust-rec > /dev/null

it works fine until the first update, then the backend goes into UPDATE and
starts eating CPU.

it appears that each call to UPDATE seems to be taking a long, long time to
complete.

--
[ Jim Mercer jim(at)reptiles(dot)org +1 416 410-5633 ]
[ Reptilian Research -- Longer Life through Colder Blood ]
[ Don't be fooled by cheap Finnish imitations; BSD is the One True Code. ]

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mitch Vincent 2000-06-23 14:53:41 Re: Need to improve performance
Previous Message The Hermit Hacker 2000-06-23 14:49:16 Re: app-index in www.pgsql.com