Temporary table instead of repeated joins - Mailing list pgsql-sql

From Chantal Ackermann
Subject Temporary table instead of repeated joins
Date
Msg-id 3D21A132.4070608@web.de
Whole thread Raw
List pgsql-sql
hello all,

in my program I have to check for a certain combination of data before I 
make an insert. The check is a select statement with a join and a 
function call. Now, I wonder if I could gain performance if I would 
create a temporary view that contained this join and the function call 
and the other constraints. There will be frequent inserts into the 
underlying tables so I can't use a real cache that is only updated once 
in a while (say, a temporary table).

So would a select on the view be faster or is the view really just some 
shortcut for the programmer but the database behaviour actually stays 
the same?

Thanks for any hints
Chantal





pgsql-sql by date:

Previous
From: Achilleus Mantzios
Date:
Subject: Re: CASE Select, referring to selected value
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: CASE Select, referring to selected value