Ticket #1 (defect)

Opened 1 year ago

Last modified 4 months ago

IStorageManager has no public getByteArray

Status: closed (fixed)

Reported by: hobu Assigned to: mhadji
Priority: minor Milestone:
Component: Indexes Version:
Keywords: Cc:

Marios,

I would like to be able to instantiate a DiskStorage? index, and then roundtrip it into a MemoryStorage? index. We have a use case (Zope), where it would be desirable to load an index from disk (or a byte stream actually), pop it into memory while Zope works with it, and then push it back to disk when Zope needs to shut down.

I'm not sure that this would be a good way to approach this, however. Can you suggest any ideas?

Change History

08/09/07 08:09:48: Modified by mhadji

  • status changed from new to assigned.

I need to think about this a little bit more, but you can do this currently by just using a large enough buffer (LRU or RandomEvictions?) with a write-back policy. That way you don't have to load the whole tree at once, especially if parts of the tree will never be accessed.

I think what is missing is a nice LRUBuffer class.

10/19/07 09:02:39: Modified by hobu

Marios,

Could you give me some pseudo code or an example of what you are describing? I'm not quite sure I follow...

07/11/08 07:09:48: Modified by mhadji

  • status changed from assigned to closed.
  • resolution set to fixed.

There is an example of using the RandomEvictions? buffering technique in the regressiontest folder.