Skip site navigation (1) Skip section navigation (2)

Re: Another question on indexes (drop and recreate)

From: Yves Vindevogel <yves(dot)vindevogel(at)implements(dot)be>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Another question on indexes (drop and recreate)
Date: 2005-06-21 15:28:20
Message-ID: 821370985653dc1f4166ca634f642ce2@implements.be (view raw or flat)
Thread:
Lists: pgsql-performance
And, after let's say a week, would that index still be optimal or would 
it be a good idea to drop it in the weekend and recreate it.

On 21 Jun 2005, at 17:22, John A Meinel wrote:

> Yves Vindevogel wrote:
>
>> Hi,
>>
>> I have another question regarding indexes.
>>
>> I have a table with a lot of indexes on it. Those are needed to 
>> perform my searches.
>> Once a day, a bunch of records is inserted in my table.
>>
>> Say, my table has 1.000.000 records and I add 10.000 records (1% new)
>> What would be faster.
>>
>> 1) Dropping my indexes and recreating them after the inserts
>> 2) Just inserting it and have PG manage the indexes
>>
>> Met vriendelijke groeten,
>> Bien à vous,
>> Kind regards,
>>
>> *Yves Vindevogel*
>> *Implements*
>
>
> I'm guessing for 1% new that (2) would be faster.
> John
> =:->
>
>
>
Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements


Attachment: Pasted Graphic 2.tiff
Description: image/tiff (5.6 KB)

In response to

Responses

pgsql-performance by date

Next:From: Tom LaneDate: 2005-06-21 15:30:54
Subject: Re: Limit clause not using index
Previous:From: John A MeinelDate: 2005-06-21 15:22:27
Subject: Re: Another question on indexes (drop and recreate)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group