[Haskell-cafe] Persisting a Map

Clark Gaebel cgaebel at uwaterloo.ca
Thu Dec 19 02:30:54 UTC 2013

Maybe acid-state [1]?

[1] http://hackage.haskell.org/package/acid-state-0.12.1/docs/Data-Acid.html

On Wed, Dec 18, 2013 at 7:58 PM, Andrew Cowie <
andrew at operationaldynamics.com> wrote:

> I have a Map. It's a lovely Map, with keys and values and everything.
> It's not _that_ large. Few 10s of MB at most. Unfortunately, I need to
> persist it somewhat reliably.
> I'd somewhat like to avoid having to use an external database (obviously
> a key/value store like Riak would work, but that's a major dependency to
> impose on the system) so I'm wondering if there is a low tech way to do
> this.
> I can control concurrent access to the file (or whatever), and the file
> system is robust. So that part is fine. I just need to externalize the
> map.
> I'm wondering if just using cereal or so would be sufficient (there is a
> Serialize instance, of course), or whether I should be using some
> acid-state thing, or a Haskell binding to gdbm,  or sqlite, or...
> Any suggestions?
> AfC
> Sydney
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe


Key ID     : 0x78099922
Fingerprint: B292 493C 51AE F3AB D016  DD04 E5E3 C36F 5534 F907
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20131218/128a89dd/attachment.html>

More information about the Haskell-Cafe mailing list