Hi,

I just wanted to report on some coding I've been working on. Following
Gilles' suggestion, I started work on moving the excerpts into a separate
db as an option. This should help speed a number of things by reducing
overhead and cut down on disk transfers.

However, the solution I'm using right now is to open the DB every time a
DocHead method is called. It opens the DB read-only on an access and
read-write on a modification. So far so good, except this requires a lot
of calls to open and close the db on every method. (Remember, this is
multiplied by *every* DocumentRef that accesses that field!)

So an ideal situation would be a static invocation of the db. Then you
open it once, close it once, etc.

The problem comes with the two methods--one wants it read-only (e.g.
htsearch) and the other wants it read-write. Maybe I'm missing something
really obvious, but I don't know how you would ensure the variable is set
properly for each method?

Put another way, I only want htsearch to open it read-only (obvious
reasons), but I want htdig to open it read-write (again obvious). But I
don't know how I'd do this with a static variable...

-Geoff

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to