Re: Performance impact of hundreds of partitions

From: Rene Schickbauer <rene(dot)schickbauer(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Performance impact of hundreds of partitions
Date: 2010-04-21 12:56:33
Message-ID: 4BCEF601.1010909@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Leonardo F wrote:

> Is it mainly a planning problem or an execution time problem?

I have here a database with a table partitioned across 400 sub-tables.

I'm using a trigger-based solution with constraint exclusion. The thing
that takes the longest is planning queries. I made THAT problem just go
away for the most part by using cached queries (only works within the
same database connection, but thats no problem for me).

I also tried a rule-based partitioning, that indeed breaks down quickly
performance wise.

Also, the trigger is a ON INSERT AND UPDATE, and only on the main table.
If your main insert/update process knows into which partition to insert,
you can speed that up even more; while still beeing able to use the
automated partitioning for everything else.

LG
Rene

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2010-04-21 13:17:41 Re: unable to start postgresql server services (Windows XP/Professional/Service Pack3)
Previous Message Andre Lopes 2010-04-21 12:41:25 Re: Database viewpoint of subject - Sending e-mails from database table with Cronjob