pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PFC <lists@peufeu.com>
To: Zoltan Boszormenyi <zboszor@dunaweb.hu>
Cc: pgsql-performance@postgresql.org
Subject: Re: Auto-tuning a VIEW?
Date: Wed, 14 Dec 2005 23:18:40 +0100
Message-ID: <op.s1sn9ey6cigqcu@peufeu.com> (raw)
In-Reply-To: <43A09F1F.6030105@dunaweb.hu>
References: <43A08EF5.4060306@dunaweb.hu>
	<op.s1smezd8cigqcu@peufeu.com>
	<43A09F1F.6030105@dunaweb.hu>

> Thanks, now the SELECT from the huge VIEW runs under one third of the  
> original runtime.

	Nice.

>>> select * from v1 where code||num = 'AAA2005000001';

	I do not know if it is at all possible, but maybe you could use a rule  
to, on select to your view, do instead a select on the two separate  
columns used in the key, with a bit of massaging on the values using  
substring()...



view thread (4+ messages)  latest in thread

Message-ID: <op.s1sn9ey6cigqcu@peufeu.com>
Permalink:  ../op.s1sn9ey6cigqcu@peufeu.com/
Also on:    postgresql.org/message-id/op.s1sn9ey6cigqcu@peufeu.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: lists@peufeu.com, zboszor@dunaweb.hu
  Subject: Re: Auto-tuning a VIEW?
  In-Reply-To: <op.s1sn9ey6cigqcu@peufeu.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox