Re: Problem with database performance, Debian 4gb ram ?

From: Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>
To: Grant Masan <grant(dot)massan(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Problem with database performance, Debian 4gb ram ?
Date: 2009-11-02 14:19:47
Message-ID: 2f4958ff0911020619yc7ed6e6u74ff6a01cb7ce98c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

On Mon, Nov 2, 2009 at 2:16 PM, Grant Masan <grant(dot)massan(at)gmail(dot)com> wrote:

> Hi Hi all,
>
> I have now readed many many forums and tried many different solutions and I
> am not getting good performance to database. My server is Debian linux, with
> 4gb ram, there is also java application and I am giving to that 512mb
> (JAVA_OPTS) memory. In database there is now like 4milj rows. What should I
> do better.
>
>
I would rather start to look at queries performance.

What's the size of db ?
select pg_size_pretty(pg_database_size('yourDbName'));

start logging queries, with time of execution, to see which ones are causing
problems.

--
GJ

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-11-02 14:20:38 Re: array_reverse()
Previous Message Merlin Moncure 2009-11-02 14:17:38 Re: array_reverse()

Browse pgsql-performance by date

  From Date Subject
Next Message Ivan Voras 2009-11-02 14:22:03 Re: Problem with database performance, Debian 4gb ram ?
Previous Message Grant Masan 2009-11-02 14:16:15 Problem with database performance, Debian 4gb ram ?