Re: [GENERAL] named cache

2006-12-02 Thread Shane Ambler
Matthew Peter wrote: Wouldn't it work just like plpgsql functions? Where the first call caches the plan or whatever? A stored procedure can cache the query plan but that is separate from caching data. When sending sql select statements to the server the query plan isn't cached (if it was

Re: [GENERAL] named cache

2006-12-02 Thread Matthew Peter
--- Shane Ambler <[EMAIL PROTECTED]> wrote: > Matthew Peter wrote: > > --- Willy-Bas Loos <[EMAIL PROTECTED]> wrote: > > > >> maybe you would find "materialized views" interesting. > >> http://www.google.com/search?q=materialized+view+postgresql > >> > >> > >> On 12/1/06, Matthew Peter <[EMAIL P

Re: [GENERAL] named cache

2006-12-02 Thread Shane Ambler
Matthew Peter wrote: --- Willy-Bas Loos <[EMAIL PROTECTED]> wrote: maybe you would find "materialized views" interesting. http://www.google.com/search?q=materialized+view+postgresql On 12/1/06, Matthew Peter <[EMAIL PROTECTED]> wrote: Is it possible to put an query result into memory? Like S

Re: [GENERAL] named cache

2006-12-02 Thread Matthew Peter
--- Willy-Bas Loos <[EMAIL PROTECTED]> wrote: > maybe you would find "materialized views" interesting. > http://www.google.com/search?q=materialized+view+postgresql > > > On 12/1/06, Matthew Peter <[EMAIL PROTECTED]> wrote: > > > > Is it possible to put an query result into memory? Like SELECT

Re: [GENERAL] named cache

2006-12-01 Thread Willy-Bas Loos
maybe you would find "materialized views" interesting. http://www.google.com/search?q=materialized+view+postgresql On 12/1/06, Matthew Peter <[EMAIL PROTECTED]> wrote: Is it possible to put an query result into memory? Like SELECT * from table WHERE [...] CACHE cache_name TIMEOUT '1 hour'::int

Re: [GENERAL] named cache

2006-12-01 Thread Richard Huxton
Matthew Peter wrote: Is it possible to put an query result into memory? Like SELECT * from table WHERE [...] CACHE cache_name TIMEOUT '1 hour'::interval; So if "cache_name" exists with the same SQL statement, the result would be fetched from the cache, refreshing and updating the cache with fr

[GENERAL] named cache

2006-12-01 Thread Matthew Peter
Is it possible to put an query result into memory? Like SELECT * from table WHERE [...] CACHE cache_name TIMEOUT '1 hour'::interval; So if "cache_name" exists with the same SQL statement, the result would be fetched from the cache, refreshing and updating the cache with fresh results when it exp