pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Arnaud Lesauvage <thewild@freesurf.fr>
To: Heikki Linnakangas <heikki@enterprisedb.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Index on two columns not used
Date: Wed, 18 Oct 2006 17:05:48 +0200
Message-ID: <453642CC.8070804@freesurf.fr> (raw)
In-Reply-To: <45363F3B.1080109@enterprisedb.com>
References: <45360E25.9010403@freesurf.fr>
	<45361295.9050504@enterprisedb.com>
	<45361A2D.6080702@freesurf.fr>
	<453632C5.50501@enterprisedb.com>
	<453636F1.7000903@freesurf.fr>
	<45363F3B.1080109@enterprisedb.com>

Heikki Linnakangas a écrit :
> Arnaud Lesauvage wrote:
>> It is quite typical, yes. It is the base query of a view. In fact, most 
>> views have a lot more joins (they join with all the upper-level tables).
>> But 150ms is OK, indeed.
> 
> If the query using the view does anything more than a "SELECT * FROM 
> view", you should do an explain analyze of the query instead of the 
> definition of the view. The access plan might look very different.

The views are used as linked tables in an Access Frontend.
Some accesses are "select * from view", others might filter 
on a country_id or something similar.
For the moment performance is good, so I think I'll keep a 
normalized database as long as it is possible !

Thanks for your help Heikki !



view thread (16+ messages)  latest in thread

Message-ID: <453642CC.8070804@freesurf.fr>
Permalink:  ../453642CC.8070804@freesurf.fr/
Also on:    postgresql.org/message-id/453642CC.8070804@freesurf.fr

 · 

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: thewild@freesurf.fr, heikki@enterprisedb.com
  Subject: Re: Index on two columns not used
  In-Reply-To: <453642CC.8070804@freesurf.fr>

* 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