From: luc peuvrier on 16 Jun 2010 21:19 You can try http://joafip.sourceforge.net/.
From: Boris Punk on 17 Jun 2010 19:12 looks interesting cheers!
From: Arne Vajhøj on 17 Jun 2010 21:27 On 16-06-2010 02:12, Boris Punk wrote: > I have a Hashtable in-memory and want to sync updates to the Hashtable to > disk. There may be frequent updates to the Hashtable and I want to avoid > constant small update disk writes. Has anyone got any idea how to do this? The most obvious seem to use a relational database and JDBC's ability to bundle multiple inserts in a transaction/batch. That would leverage all the effort invested in optimizing database performance. Arne
From: Roedy Green on 18 Jun 2010 21:53
On Wed, 16 Jun 2010 07:12:12 +0100, "Boris Punk" <khgfhf(a)hmjggg.com> wrote, quoted or indirectly quoted someone who said : >I have a Hashtable in-memory and want to sync updates to the Hashtable to >disk. There may be frequent updates to the Hashtable and I want to avoid >constant small update disk writes. Has anyone got any idea how to do this? Serialise the whole thing and write it with a big buffer size. Perhaps you can suppress the write if there has been one "recently". You could use a SQL database instead. Then this becomes the engine's problem. It will use far more sophisticated techniques than you would. Implement a hermit crab. see http://mindprod.com/jgloss/hermitcrab.html -- Roedy Green Canadian Mind Products http://mindprod.com There is no harm in being sometimes wrong especially if one is promptly found out. ~ John Maynard Keynes (born: 1883-06-05 died: 1946-04-21 at age: 62) |