Re: Postgres performace with large tables.

From: Wim <wdh(at)belbone(dot)be>
To: Andrew McMillan <andrew(at)catalyst(dot)net(dot)nz>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Postgres performace with large tables.
Date: 2003-02-06 10:54:59
Message-ID: 3E423F03.7080806@belbone.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Andrew McMillan wrote:

>On Thu, 2003-02-06 at 20:39, Wim wrote:
>
>
>>Andrew McMillan wrote:
>>
>>
>>>If you have processes that are updating/deleting within the table in
>>>parallel then you probably want to vacuum the table (much) more often.
>>>
>>>
>>>
>>I Think I'll try that in the first place,
>>I do:
>>BEGIN
>> SELECT routers FROM routers_table WHERE blabla;
>> UPDATE routers_table SET timestamp=blabla;
>> INSERT INTO routers_counters VALUES blablabla;
>>END
>>COMMIT
>>
>>How much should I vacuum the table? After every run of the script or 2
>>or 3 times/day?
>>
>>
>
>I would tend to "VACUUM routers_table" after each run of the script,
>given that it is a small table (presumably 30 rows) it should be next to
>know overhead and will ensure it remains within 1-2 physical pages.
>
>If you continue to experience problems, you are best advised to provide
>full schema and EXPLAIN output along with your questions.
>
>Cheers,
> Andrew.
>
>

Thanx,

Let's work on it!

Wim

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2003-02-06 14:49:17 Re: how can I tell it's postgresql data?
Previous Message Aarni Ruuhimäki 2003-02-06 08:47:34 Re: how can I tell it's postgresql data?