berkeley-db

Recommend a fast & scalable persistent Map - Java

别来无恙 提交于 2019-11-27 10:32:45
问题 I need a disk backed Map structure to use in a Java app. It must have the following criteria: Capable of storing millions of records (even billions) Fast lookup - the majority of operations on the Map will simply to see if a key already exists. This, and 1 above are the most important criteria. There should be an effective in memory caching mechanism for frequently used keys. Persistent, but does not need to be transactional, can live with some failure. i.e. happy to synch with disk

How exactly does subversion store files in the repository?

我是研究僧i 提交于 2019-11-27 03:48:53
I read the subversion book and it is clear to me that subversion does not store individual files but only deltas in order to minimize disk space. Subversion also does the same with binary files as well (this used to be a huge weakness of CVS). However I do not understand the exact mechanism. When I commit a file what happens? Subversion stores only the diff (and already has the old version) Subversion deletes the previous version, stores the new file intact and creates a reverse diff in order to "re-create" the old version if needed. Something else that I haven't thought of. The first case