Rich Neswold ha scritto:Yes, it is a solution; and I can run a thread that every N seconds writes the database to a file.
On Wed, Sep 24, 2008 at 4:17 PM, Manlio Perillo <manlio_perillo@libero.it <mailto:manlio_perillo@libero.it>> wrote:
I need a simple, concurrent safe, database, written in Haskell.
A database with the interface of Data.Map would be great, since what
I need to to is atomically increment some integer values, and I
would like to avoid to use SQLite.
How about "MVar (Map k Int)"? or even "Map k (MVar Int)"?
But this works only if the database is used by only one process.