Re: [GENERAL] In theory question

2007-05-10 Thread Hannes Dorbath
On 09.05.2007 17:30, Erik Jones wrote: On 09.05.2007 16:13, Naz Gassiep wrote: I think this is close to what MySQL's query cache does. The question is if this should be the job of the DBMS and not another layer. At least the pgmemcache author and I think that it's better done outside the DBMS.

Re: [GENERAL] In theory question

2007-05-09 Thread Naz Gassiep
> I have always found MySQL's query cache to be utterly useless. > > Think about it this way : > > It only works for tables that seldom change. > It does not work for big tables (like the posts table of a forum) > because the cache would have to be huge. > > So, the most freque

Re: [GENERAL] In theory question

2007-05-09 Thread David Fetter
On Wed, May 09, 2007 at 10:29:02AM -0700, Joshua D. Drake wrote: > Naz Gassiep wrote: > >Hannes Dorbath wrote: > >>I think this is close to what MySQL's query cache does. The question > >>is if this should be the job of the DBMS and not another layer. At > >>least the pgmemcache author and I think

Re: [GENERAL] In theory question

2007-05-09 Thread Joshua D. Drake
Alvaro Herrera wrote: Joshua D. Drake wrote: Karsten Hilbert wrote: On Wed, May 09, 2007 at 10:29:02AM -0700, Joshua D. Drake wrote: This is exactly what I was asking about. So my theoretical idea has already been implemented. Now if only *all* my ideas were done for me by the time I came up

Re: [GENERAL] In theory question

2007-05-09 Thread Alvaro Herrera
Joshua D. Drake wrote: > Karsten Hilbert wrote: > >On Wed, May 09, 2007 at 10:29:02AM -0700, Joshua D. Drake wrote: > > > >>>This is exactly what I was asking about. So my theoretical idea has > >>>already been implemented. Now if only *all* my ideas were done for me by > >>>the time I came up with

Re: [GENERAL] In theory question

2007-05-09 Thread Joshua D. Drake
Karsten Hilbert wrote: On Wed, May 09, 2007 at 10:29:02AM -0700, Joshua D. Drake wrote: This is exactly what I was asking about. So my theoretical idea has already been implemented. Now if only *all* my ideas were done for me by the time I came up with them :) Then you wouldn't be able to even

Re: [GENERAL] In theory question

2007-05-09 Thread Karsten Hilbert
On Wed, May 09, 2007 at 10:29:02AM -0700, Joshua D. Drake wrote: > >This is exactly what I was asking about. So my theoretical idea has > >already been implemented. Now if only *all* my ideas were done for me by > >the time I came up with them :) > > Then you wouldn't be able to eventually patent

Re: [GENERAL] In theory question

2007-05-09 Thread PFC
This may be a question for -hackers, but I don't like disturbing them unnecessarily. I've been having a look at memcached. I would like to ask, is there any reason that, theoretically, a similar caching system could be built right into the db serving daemon? I.e., the hash tables and libevent co

Re: [GENERAL] In theory question

2007-05-09 Thread Naz Gassiep
>> This is exactly what I was asking about. So my theoretical idea has >> already been implemented. Now if only *all* my ideas were done for me by >> the time I came up with them :) > > Then you wouldn't be able to eventually patent them ;) What an un-BSD licensish thing to say :P --

Re: [GENERAL] In theory question

2007-05-09 Thread Joshua D. Drake
Naz Gassiep wrote: Hannes Dorbath wrote: I think this is close to what MySQL's query cache does. The question is if this should be the job of the DBMS and not another layer. At least the pgmemcache author and I think that it's better done outside the DBMS. See http://people.FreeBSD.org/~seanc/pg

Re: [GENERAL] In theory question

2007-05-09 Thread Naz Gassiep
Hannes Dorbath wrote: > I think this is close to what MySQL's query cache does. The question > is if this should be the job of the DBMS and not another layer. At > least the pgmemcache author and I think that it's better done outside > the DBMS. See > http://people.FreeBSD.org/~seanc/pgmemcache/pgm

Re: [GENERAL] In theory question

2007-05-09 Thread Tom Lane
Naz Gassiep <[EMAIL PROTECTED]> writes: > I.e., the hash tables and libevent could sit on top of postmaster as an > optional component caching data on a per-query basis and only hitting > the actual db in the event of a cache miss? How does the cache know when the database contents change?

Re: [GENERAL] In theory question

2007-05-09 Thread Erik Jones
On May 9, 2007, at 10:22 AM, Hannes Dorbath wrote: On 09.05.2007 16:13, Naz Gassiep wrote: This may be a question for -hackers, but I don't like disturbing them unnecessarily. I've been having a look at memcached. I would like to ask, is there any reason that, theoretically, a similar cachi

Re: [GENERAL] In theory question

2007-05-09 Thread Hannes Dorbath
On 09.05.2007 16:13, Naz Gassiep wrote: This may be a question for -hackers, but I don't like disturbing them unnecessarily. I've been having a look at memcached. I would like to ask, is there any reason that, theoretically, a similar caching system could be built right into the db serving daemo

Re: [GENERAL] In theory question

2007-05-09 Thread Michael Glaesemann
On May 9, 2007, at 9:13 , Naz Gassiep wrote: I've been having a look at memcached. I would like to ask, is there any reason that, theoretically, a similar caching system could be built right into the db serving daemon? This is all a bit above my head, but have you looked at pgmemcached? ht

[GENERAL] In theory question

2007-05-09 Thread Naz Gassiep
This may be a question for -hackers, but I don't like disturbing them unnecessarily. I've been having a look at memcached. I would like to ask, is there any reason that, theoretically, a similar caching system could be built right into the db serving daemon? I.e., the hash tables and libevent cou