Re: Data structure design question

2009-10-10 Thread steven marcus
I need "durable data" that interacts well with the STM too. I describe a system that works well for a specific use-case: All data is stored in the persistent datastructures that clojure provides and changes are protected via refs as one would expect -- standard idiomatic clojure. Any change to a

Re: Data structure design question

2009-10-09 Thread Anders Nawroth
If you look into using a database, the graph database Neo4j could be of interest as well. Some people use it in Clojure and have written different wrappers for it, see: http://wiki.neo4j.org/content/Clojure I'm not sure regarding handling this amount of simultaneous threads, but Neo4j is designed

Re: Data structure design question

2009-10-09 Thread Wilson MacGyver
I suspect people are looking for the clojure's equivalent of erlang's mnesia. Which at the moment doesn't exist as far as I know. On Fri, Oct 9, 2009 at 11:15 AM, Stuart Sierra wrote: > > Honestly, this sounds like a problem for a full-fledged database. > With Clojure/datalog, you'll need to per

Re: Data structure design question

2009-10-09 Thread Stuart Sierra
Honestly, this sounds like a problem for a full-fledged database. With Clojure/datalog, you'll need to persist your records to disk manually. At some point, your thousands of references will start to look like a mini-database anyway. If you can fit your data into a relational schema, use that; i

Re: Data structure design question

2009-10-08 Thread Timothy Pratley
On Oct 9, 1:21 pm, Robert Luo wrote: > Hi, I am working on a server project, which requires thousands records Just FYI this came up a while ago: http://groups.google.com/group/clojure/browse_thread/thread/8c09cab025a716f4 I'm very interested in this also - if it has been progressed in any way.

Data structure design question

2009-10-08 Thread Robert Luo
Hi, I am working on a server project, which requires thousands records of data stored in memory, and they will be accessed by thousands of threads simultaneously. I intend to use datalog to store all my data, sharing the whole database by a reference. However, I am afraid of concurrency of this de