Re: vacuum, performance, and MVCC

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
Cc: Zeugswetter Andreas DCP SD <ZeugswetterA(at)spardat(dot)at>, Mark Woodward <pgsql(at)mohawksoft(dot)com>, PFC <lists(at)peufeu(dot)com>, Chris Browne <cbbrowne(at)acm(dot)org>, postgres hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: vacuum, performance, and MVCC
Date: 2006-06-23 14:00:37
Message-ID: 20060623140037.GC7327@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Csaba Nagy wrote:

> This could be a solution... but then I'm not sure how well would do
> queries which need the first 10 records based on some criteria which
> does not include the group id. I guess limit queries across the union of
> the partitions don't work too well for now, and we do have such queries.
> I'm pretty sure we could work this out, but it would need some big
> refactoring of our current code which is not that simple... and it must
> work well with oracle too. We do have systems on Oracle too.

No, it wouldn't, because the partitioning logic can live in the
database. You don't need to touch the application.

I agree that those queries not using the group criteria could put you in
some sort of trouble. But if you exchange one big indexscan by several
smaller indexscans, maybe it's not that bad. Even less if you stop
scanning (because of the LIMIT) before you used all the partitions.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Diogo Biazus 2006-06-23 14:03:46 Re: xlog viewer proposal
Previous Message Diogo Biazus 2006-06-23 13:59:24 Re: xlog viewer proposal