Re: create index concurrently - duplicate index to reduce time without an index - Mailing list pgsql-general

From Alban Hertroys
Subject Re: create index concurrently - duplicate index to reduce time without an index
Date
Msg-id D808D727-E7BF-498D-8457-A7B1FC096368@solfertje.student.utwente.nl
Whole thread Raw
In response to Re: create index concurrently - duplicate index to reduce time without an index  (<Gareth.Williams@csiro.au>)
List pgsql-general
On 2 Jun 2010, at 6:00, <Gareth.Williams@csiro.au> <Gareth.Williams@csiro.au> wrote:
> My understanding was that the index would not be updated for inserts to the actual table - which is why one has to
reindexor drop the index and create it again (with concurrently if you don't want to block reads).  Am I missing
something?

That's definitely not true, indexes would be rather useless if that were the case. What doesn't get updated with
insertsare planner statistics, but you update those by executing ANALYSE (or VACUUM ANALYSE), or automatically by
autovacuum.

> Perhaps I don't need to recreate the index at all - but I've been advised to reindex.
>
> See:
> http://groups.google.com/group/irod-chat/browse_thread/thread/0396d48ffecfb2b0#
> "On a side note, for the irods performance, an other key factor is also
> the iCAT database performances and in some of your tests below, it has
> an impact. Recomputing the index on a regular basis is something
> important: here, I am doing it once per week for each iCAT (cron task).
> Even for a catalog with millions of files, if you have ingested tens of
> thousands of new files, you will see an improvement when doing
> reindexing (for example an ils performed in 0.3 s will goes down to less
> than 0.1 s when reindexing has been made)."


There are cases where reindexing shows a performance improvement over just analysing a table, but the above (only
inserts)shouldn't be one of them. 

Alban Hertroys

--
Screwing up is an excellent way to attach something to the ceiling.


!DSPAM:737,4c064ad110154201810452!



pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: Is it possible to make the order of output the same as the order of input parameters?
Next
From: Tim Landscheidt
Date:
Subject: Re: Is it possible to make the order of output the same as the order of input parameters?