pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: Perfomance problems
2+ messages / 2 participants
[nested] [flat]
* Re: Perfomance problems
@ 2001-11-06 17:07 Stephan Szabo <sszabo@megazone23.bigpanda.com>
parent: Manuel Duran Aguete <mdaguete@alsernet.es>
0 siblings, 0 replies; 2+ messages in thread
From: Stephan Szabo @ 2001-11-06 17:07 UTC (permalink / raw)
To: Manuel Duran Aguete <mdaguete@alsernet.es>; +Cc: pgsql-admin
On 6 Nov 2001, Manuel Duran Aguete wrote:
> Hi
>
> I'm building an app (A) that inserts about 30.000 - 40.000 records in a
> table per day. Another app (B) get this records and process it, an then
> the records are deleted. The A app gets 50 records each time, this SQL
> statement takes 10-15 seconds. I make a vaccum and the time is now about
> 5-10 seconds, bu it's to slow. It enqueue records, about 10-20 in each.
> The B app takes less than a second in process each message.
First did you do just a vacuum or a vacuum analyze, and what does explain
show for the query, and do you have any very frequent (out of scale for
the average values) values that aren't null in the data? Also, are the
indexes a single index for each of those fields or a single multicolumn
index?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Perfomance problems
@ 2001-11-06 23:01 Manuel Duran Aguete <mdaguete@alsernet.es>
0 siblings, 1 reply; 2+ messages in thread
From: Manuel Duran Aguete @ 2001-11-06 23:01 UTC (permalink / raw)
To: pgsql-admin
Hi
I'm building an app (A) that inserts about 30.000 - 40.000 records in a
table per day. Another app (B) get this records and process it, an then
the records are deleted. The A app gets 50 records each time, this SQL
statement takes 10-15 seconds. I make a vaccum and the time is now about
5-10 seconds, bu it's to slow. It enqueue records, about 10-20 in each.
The B app takes less than a second in process each message.
The statement is
SELECT * FROM table_a
WHERE number = 123
AND msg_orig = 'A'
ORDER by id;
The table is:
id serial primary key,
data varchar(260),
number varchar(12)
time_a timestamp,
time_b timestamp,
msg_orig varchar(3)
Indexes:
Number,msg_orig, id, time_b
Please, Help, What I'm doing bad?
I'm using 7.1.2 in Solaris.
Thanks.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-11-06 23:01 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-11-06 23:01 Perfomance problems Manuel Duran Aguete <mdaguete@alsernet.es>
2001-11-06 17:07 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox