From: h012@ied.com
To: pgsql-sql@postgresql.org
Subject: Re: slowing down too fast - why ?
Date: Sun, 11 Aug 2002 14:10:34 -0400 (EDT)
Message-ID: <no.Yo.N.nN.0208110934010.4251-100000@business.com> (raw)
I've even launched the backend with "-F" and removed BEGIN/COMMIT and
LOCK TABLE and FOR UPDATE, but I still get slow response.
only when count(*) from file is 16000, I get about 2-3 rows / second on
average. When count(*) from file was 100, I get about 20-30 rows / second.
Help !
Thanx,
John
On Sun, 11 Aug 2002 h012@ied.com wrote:
>
> and I forgot to mention that my stats are available at:
> http://John.Vicherek.com/slow/times.query.txt
>
> John
>
> On Sun, 11 Aug 2002 h012@ied.com wrote:
>
> >
> >
> > Hi,
> >
> > I must be doing something silly. I have a 900MHz, 384MB RAM, and
> > this thing is slow. (Postgresql-7.1.2).
> >
> > And growing exponencially slower.
> >
> > SQL: http://John.Vicherek.com/slow/schema.sql (save to /tmp/schema.sql)
> > am.dat: http://John.Vicherek.com/slow/am.dat (save to /tmp/am.dat )
> > perl: http://John.Vicherek.com/slow/rpm2filerian.pl (save to /tmp/rpm2filerian.pl)
> >
> > when I do :
> >
> > createdb filerian
> > psql -d filerian -f /tmp/schema.sql
> > echo 'create table times (the_moment datetime, the_number int4);' | psql -d filerian
> > cd /tmp/mdk/8.2/i586/Mandrake/RPMS # lots of RPMs here
> > while sleep 10 ; do echo 'insert into times values( now(), count(file.id));' | psql -d filerian ; done 2>&1 >/dev/null &
> > for i in *.rpm ; do echo $i ; perl /tmp/rpm2filerian.pl 0 $i ; done
> >
> >
> > Why are the times so bad ? Why is it slowing so fast ?
> >
> > Am I missing any useful indeces ?
> >
> > This shows the slowage:
> > select the_number,min(the_moment) from times group by the_number;
> >
> > PS: if you look in the perl code for "exec", immediatelly above will you
> > find the query it is doing.
> >
> > Thanx,
> >
> > John
> >
> >
> >
> >
> >
>
>
--
-- Gospel of Jesus is the saving power of God for all who believe --
## To some, nothing is impossible. ##
http://Honza.Vicherek.com/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: h012@ied.com
Subject: Re: slowing down too fast - why ?
In-Reply-To: <no.Yo.N.nN.0208110934010.4251-100000@business.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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