Re: Database Performance problem

From: joepie Platteau <joepie(dot)Platteau(at)kulak(dot)ac(dot)be>
To: pgsql-general(at)postgresql(dot)org, pgsql-novice(at)postgresql(dot)org
Subject: Re: Database Performance problem
Date: 2003-01-21 08:01:12
Message-ID: 3E2CFE48.6010802@kulak.ac.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

Hello there!

Thank you for all the answers. The problem is solved.
When I edited the postgresql.conf (which still had the standard
configuration), and changed the following :

shared_buffers = 1024
sort_mem = 10000

I also restarted postgresql and everything that took approx. 55 seconds now took only 3 seconds!

Thanks.
Joepie.

joepie Platteau wrote:

> A question about the performance of postgresql...
>
> Situation :
> I created a Postgresql Database with 2 tables : T-Persons and T-Address
> In both tables are almost 70000 records.
> I also created the same Database in MsAccess (and put it on the same
> server) with the same tables (and data)
>
> I connect these tables from my MsAccess2000 - frontend and run the
> following query :
>
> SELECT [T-persons].[Id-person], [T-address].Street, [T-address].Number
> FROM [T-persons] INNER JOIN [T-addres] ON [T-persons].[ID-address] =
> [T-address].[ID-address];
>
> When I run this query
> 1. with the tables of Postgresql, it takes approx. 58 seconds.
> 2. with the tables of MsAccess, it takes approx. 6 seconds.
> 3. directly (without connection to Access) on the server, it takes 5
> seconds
>
> I already tried optimising the Postgresql with Vacuum and I also
> created an index on the field "ID-address" in T-persons.
> All this doesn't help. I also have the latest version of ODBC.
>
> Are there any other possibilities to make this run faster?
> I tried to make the query as Pass-through query, but this also doesn't
> help a lot...(52 seconds)
>
> Thanks,
> Joepie.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Aurangzeb M. Agha 2003-01-21 09:21:25 Re: Writing apps for ORDBMS
Previous Message Emmanuel Charpentier 2003-01-21 07:44:20 Re: Problem with alter table (creating a foreing key post

Browse pgsql-novice by date

  From Date Subject
Next Message Jérôme Kestener 2003-01-21 14:49:06 NewBie
Previous Message Tom Lane 2003-01-20 20:52:22 Re: OID