Re: index update

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: Pawel Veselov <pawel(dot)veselov(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: index update
Date: 2012-07-18 04:18:25
Message-ID: 50063911.4000805@ringerc.id.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 07/18/2012 12:02 PM, Pawel Veselov wrote:
> Hi.
>
> If I have a lot (10k) tables, and each table has a btree index, and
> all the tables are being constantly inserted into, would all the
> indexes have to be in memory, and would effectively start fighting for
> space?

Quite likely, yes.

You could make it a bit more efficient by grouping inserts up and doing
batches for each table - if that's possible in your application.

10k tables is a heck of a lot. That sort of thing often implies app
design issues. Why 10k tables? What do they do?

--
Craig Ringer

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pawel Veselov 2012-07-18 04:30:14 Re: index update
Previous Message Pawel Veselov 2012-07-18 04:02:46 index update