in reply to Re: [OT]? Behavior of Berkeley DB cache when reading cached page that was changed on disk by another app
in thread [OT]? Behavior of Berkeley DB cache when reading cached page that was changed on disk by another app
What I was looking for was information from anyone in the know about BDB's Memory Pools (the structures that implement the caching layer in BDB). What I wondered is whether these memory pools were smart enough to detect when a file had been modified by some agnet outside of their control and could then be made to invalidate any cached pages for that file. What I've been able to find on the Web so far is inconclusive, but it doesn't look like there's any mention of such smarts being a part of this technology. Therefore unless someone can tell me otherwise I think I'm stuck with closing and reopening database connections every time I want to obtain a lock and do work in order to assure that the caching is not invalidated by work done by other processes since the last time I had a database lock.
--DrWhy
"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: [OT]? Behavior of Berkeley DB cache when reading cached page that was changed on disk by another app
by Anonymous Monk on May 06, 2011 at 04:01 UTC |