Received: from area.alsernet.es (area.alsernet.es [195.55.27.6]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fA6G1Jm27837 for ; Tue, 6 Nov 2001 11:01:19 -0500 (EST) (envelope-from mdaguete@alsernet.es) Received: from dt1010.quantum.int ([213.4.20.116]) by area.alsernet.es (8.9.3/8.9.3) with ESMTP id RAA16776 for ; Tue, 6 Nov 2001 17:01:18 +0100 Subject: Perfomance problems From: Manuel Duran Aguete To: pgsql-admin@postgresql.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-aZaB+mMehe95coakiuB7" X-Mailer: Evolution/0.16 (Preview Release) Date: 06 Nov 2001 18:01:50 -0500 Message-Id: <1005087741.10200.43.camel@dt1010.quantum.int> Mime-Version: 1.0 X-Archive-Number: 200111/19 X-Sequence-Number: 2544 --=-aZaB+mMehe95coakiuB7 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 =3D 123=20 AND msg_orig =3D 'A' ORDER by id; The table is: =09 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. =09 --=-aZaB+mMehe95coakiuB7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA76GveICw+MVhuEuURAhcQAJ9zOmOR7rEPtyyEpovJfrlyQjyZbwCgp37e 9WQKLLuJJ3rP/Il+9/8hovY= =HQJ9 -----END PGP SIGNATURE----- --=-aZaB+mMehe95coakiuB7--