[ZODB-Dev] ZEO and replication of BTree based objects
Steve Alexander
steve at cat-box.net
Wed Jun 11 16:21:02 EDT 2003
> Perhaps off-topic: this is in the same line as Mozilla's smart
> prefetching based on the <link ...> tags in an HTML header. It checks to
> see if the pages are currently cached and if not, pulls them when the
> browser's network activity is low. That way you get `instant' access to
> linked pages.
I thought it would be fun to instrument the ZODB so that it uses
something like syslog to send out a short message for every oid loaded,
and give the connection that loaded it.
This data (oids and when they are loaded, per connection) could be
gathered and analysed, and pre-fetching strategies could be tried out
against the data to see how effective they are.
I wonder if some of the bayesian / pattern-recognition techniques
developed for detecting spam might help?
The same kind of set-up could be used to analyse a connection in real
time, in a separate process, and send messages to the process to load
object that it is predicted might be required soon.
--
Steve Alexander
More information about the ZODB-Dev
mailing list