Re: [Haskell-cafe] Easiest to use NoSQL storage with Haskell?

2011-11-10 Thread Daniel Schoepe
On Wed, 9 Nov 2011 20:34:11 +0300, dokondr doko...@gmail.com wrote:
 I am wondering if Database.Persist can work with key/value storage such as
 Riak or SimpleDB where records are lists of key/value pairs and any two
 lists can have different keys?
 Is simple implementation of 'persistent'  based on files with key/value
 records possible?
 For example 'persistent' based on KyotoCabinet package?
 (http://hackage.haskell.org/package/KyotoCabinet)http://hackage.haskell.org/package/KyotoCabinet

As far as I know, persistent doesn't depend on any particular backend,
but as far as NoSQL-stuff goes, I think there's only persistent-mongodb
at the moment. I don't know how much work it is to create a new backend
(and if it's worth the effort in your case), but this looks like a good
place to start:

http://hackage.haskell.org/packages/archive/persistent/0.6.4/doc/html/Database-Persist.html#t:PersistBackend

Cheers,
Daniel


pgpJFU0H52TZ9.pgp
Description: PGP signature
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Easiest to use NoSQL storage with Haskell?

2011-11-09 Thread dokondr
Hi,
What  Haskell package to work with NoSQL storage is both mature and easiest
to use?
I need persistent storage for simple key/value lists (not complex JSON
docs).
CouchDB and Cassandra seems to be overkill for my needs. What about Riak,
MongoDB,  Voldemort, etc. ?

Thanks!
Dmitri.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Easiest to use NoSQL storage with Haskell?

2011-11-09 Thread Daniel Schoepe
On Wed, 9 Nov 2011 13:59:46 +0300, dokondr doko...@gmail.com wrote:
 Hi,
 What  Haskell package to work with NoSQL storage is both mature and easiest
 to use?
 I need persistent storage for simple key/value lists (not complex JSON
 docs).
 CouchDB and Cassandra seems to be overkill for my needs. What about Riak,
 MongoDB,  Voldemort, etc. ?

persistent (part of yesod, but useable without other yesod libraries) is
quite pleasant to use and supports MongoDB:

http://hackage.haskell.org/package/persistent-0.6.4
http://hackage.haskell.org/package/persistent-mongoDB-0.6.3

Cheers,
Daniel


pgpOrSLejqLG4.pgp
Description: PGP signature
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Easiest to use NoSQL storage with Haskell?

2011-11-09 Thread dokondr
On Wed, Nov 9, 2011 at 5:46 PM, Daniel Schoepe dan...@schoepe.org wrote:

 On Wed, 9 Nov 2011 13:59:46 +0300, dokondr doko...@gmail.com wrote:
  Hi,
  What  Haskell package to work with NoSQL storage is both mature and
 easiest
  to use?
  I need persistent storage for simple key/value lists (not complex JSON
  docs).
  CouchDB and Cassandra seems to be overkill for my needs. What about Riak,
  MongoDB,  Voldemort, etc. ?

 persistent (part of yesod, but useable without other yesod libraries) is
 quite pleasant to use and supports MongoDB:

 http://hackage.haskell.org/package/persistent-0.6.4
 http://hackage.haskell.org/package/persistent-mongoDB-0.6.3

 Cheers,
 Daniel


I am wondering if Database.Persist can work with key/value storage such as
Riak or SimpleDB where records are lists of key/value pairs and any two
lists can have different keys?
Is simple implementation of 'persistent'  based on files with key/value
records possible?
For example 'persistent' based on KyotoCabinet package?
(http://hackage.haskell.org/package/KyotoCabinet)http://hackage.haskell.org/package/KyotoCabinet


Dmitri
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Easiest to use NoSQL storage with Haskell?

2011-11-09 Thread Bas van Dijk
On 9 November 2011 11:59, dokondr doko...@gmail.com wrote:
 What  Haskell package to work with NoSQL storage is both mature and easiest
 to use?
 I need persistent storage for simple key/value lists (not complex JSON
 docs).

If your data fits in RAM then acid-state is also an option:

http://hackage.haskell.org/package/acid-state

It's used as the storage library for the new hackage server.

Bas

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Easiest to use NoSQL storage with Haskell?

2011-11-09 Thread dokondr
On Wed, Nov 9, 2011 at 8:41 PM, Bas van Dijk v.dijk@gmail.com wrote:

 On 9 November 2011 11:59, dokondr doko...@gmail.com wrote:
  What  Haskell package to work with NoSQL storage is both mature and
 easiest
  to use?
  I need persistent storage for simple key/value lists (not complex JSON
  docs).

 If your data fits in RAM then acid-state is also an option:

 http://hackage.haskell.org/package/acid-state

 It's used as the storage library for the new hackage server.


I need to share data across processes running both on the same node or
different nodes. Every process has its own memory space.
Can acid-state memory be shared between several system processes?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Easiest to use NoSQL storage with Haskell?

2011-11-09 Thread Bas van Dijk
On 9 November 2011 19:50, dokondr doko...@gmail.com wrote:
 On Wed, Nov 9, 2011 at 8:41 PM, Bas van Dijk v.dijk@gmail.com wrote:

 On 9 November 2011 11:59, dokondr doko...@gmail.com wrote:
  What  Haskell package to work with NoSQL storage is both mature and
  easiest
  to use?
  I need persistent storage for simple key/value lists (not complex JSON
  docs).

 If your data fits in RAM then acid-state is also an option:

 http://hackage.haskell.org/package/acid-state

 It's used as the storage library for the new hackage server.


 I need to share data across processes running both on the same node or
 different nodes. Every process has its own memory space.
 Can acid-state memory be shared between several system processes?


I believe so:

http://hackage.haskell.org/packages/archive/acid-state/0.6.0/doc/html/Data-Acid-Remote.html

but maybe David can tell you more about that.

Cheers,

Bas

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Easiest to use NoSQL storage with Haskell?

2011-11-09 Thread Alberto G. Corona
TCache manages persistent data trough STM references called DBRefs
that are very similar to TVars, but with  added user-configurable
persistence. Very intuitive to use.

2011/11/9 Bas van Dijk v.dijk@gmail.com:
 On 9 November 2011 19:50, dokondr doko...@gmail.com wrote:
 On Wed, Nov 9, 2011 at 8:41 PM, Bas van Dijk v.dijk@gmail.com wrote:

 On 9 November 2011 11:59, dokondr doko...@gmail.com wrote:
  What  Haskell package to work with NoSQL storage is both mature and
  easiest
  to use?
  I need persistent storage for simple key/value lists (not complex JSON
  docs).

 If your data fits in RAM then acid-state is also an option:

 http://hackage.haskell.org/package/acid-state

 It's used as the storage library for the new hackage server.


 I need to share data across processes running both on the same node or
 different nodes. Every process has its own memory space.
 Can acid-state memory be shared between several system processes?


 I believe so:

 http://hackage.haskell.org/packages/archive/acid-state/0.6.0/doc/html/Data-Acid-Remote.html

 but maybe David can tell you more about that.

 Cheers,

 Bas

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe