Re: retrieve() hits db even if obj present in %Live_Objects.

[prev] [thread] [next] [Date index for 2004/06/25]

From: Tim Bunce
Subject: Re: retrieve() hits db even if obj present in %Live_Objects.
Date: 09:22 on 25 Jun 2004
On Thu, Jun 24, 2004 at 02:42:55PM -0400, Perrin Harkins wrote:
> 
> > _do_search() suffers from (and underlies) the same problem that retrieve() 
> > has -- Tim's patch will fix the problem with retrieve(), specifically, as I 
> > understand. Still, will _do_search() be able to recognize an id-only lookup, 
> > and try the cache before calling sql_Retrieve()? (Not that I care, actually, 
> > if retrieve() works and I can disable non-id-based searches)
> 
> What kind of action would result in _do_search() being called for an
> ID-only lookup other than a retrieve() call?

Some generic code might. _do_search is really a better place for the logic
as it'll catch more cases. I put it in retrieve() just for simplisity.

But having done it I can see that it wouldn't be to hard to implement in
_do_search. I'm working on a patch now.

Tim.

Re: retrieve() hits db even if obj present in %Live_Objects.
Tim Bunce 09:22 on 25 Jun 2004

Re: retrieve() hits db even if obj present in %Live_Objects.
Takes Tea at Half Past Three 21:40 on 24 Jun 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52